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