From 7bf0c614f6bd1af4eee6f8c485d4276a8d656ba8 Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Wed, 22 Feb 2023 10:01:43 -0800 Subject: [PATCH] Modified chain freezer map keys to Public to match v1.11.2 --- core/rawdb/plugin_hooks.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/rawdb/plugin_hooks.go b/core/rawdb/plugin_hooks.go index 05a0b36d3..98fd27a2e 100644 --- a/core/rawdb/plugin_hooks.go +++ b/core/rawdb/plugin_hooks.go @@ -70,7 +70,7 @@ func PluginCommitUpdate(pl *plugins.PluginLoader, num uint64) { receipts []byte td []byte ) - if hashi, ok := update[chainFreezerHashTable]; ok { + if hashi, ok := update[ChainFreezerHashTable]; ok { switch v := hashi.(type) { case []byte: hash = v @@ -78,7 +78,7 @@ func PluginCommitUpdate(pl *plugins.PluginLoader, num uint64) { hash, _ = rlp.EncodeToBytes(v) } } - if headeri, ok := update[chainFreezerHeaderTable]; ok { + if headeri, ok := update[ChainFreezerHeaderTable]; ok { switch v := headeri.(type) { case []byte: header = v @@ -86,7 +86,7 @@ func PluginCommitUpdate(pl *plugins.PluginLoader, num uint64) { header, _ = rlp.EncodeToBytes(v) } } - if bodyi, ok := update[chainFreezerBodiesTable]; ok { + if bodyi, ok := update[ChainFreezerBodiesTable]; ok { switch v := bodyi.(type) { case []byte: body = v @@ -94,7 +94,7 @@ func PluginCommitUpdate(pl *plugins.PluginLoader, num uint64) { body, _ = rlp.EncodeToBytes(v) } } - if receiptsi, ok := update[chainFreezerReceiptTable]; ok { + if receiptsi, ok := update[ChainFreezerReceiptTable]; ok { switch v := receiptsi.(type) { case []byte: receipts = v @@ -102,7 +102,7 @@ func PluginCommitUpdate(pl *plugins.PluginLoader, num uint64) { receipts, _ = rlp.EncodeToBytes(v) } } - if tdi, ok := update[chainFreezerDifficultyTable]; ok { + if tdi, ok := update[ChainFreezerDifficultyTable]; ok { switch v := tdi.(type) { case []byte: td = v