Modified chain freezer map keys to Public to match v1.11.2

This commit is contained in:
philip-morlier 2023-02-22 10:01:43 -08:00
parent 4415e7c7b8
commit 7bf0c614f6

View File

@ -70,7 +70,7 @@ func PluginCommitUpdate(pl *plugins.PluginLoader, num uint64) {
receipts []byte receipts []byte
td []byte td []byte
) )
if hashi, ok := update[chainFreezerHashTable]; ok { if hashi, ok := update[ChainFreezerHashTable]; ok {
switch v := hashi.(type) { switch v := hashi.(type) {
case []byte: case []byte:
hash = v hash = v
@ -78,7 +78,7 @@ func PluginCommitUpdate(pl *plugins.PluginLoader, num uint64) {
hash, _ = rlp.EncodeToBytes(v) hash, _ = rlp.EncodeToBytes(v)
} }
} }
if headeri, ok := update[chainFreezerHeaderTable]; ok { if headeri, ok := update[ChainFreezerHeaderTable]; ok {
switch v := headeri.(type) { switch v := headeri.(type) {
case []byte: case []byte:
header = v header = v
@ -86,7 +86,7 @@ func PluginCommitUpdate(pl *plugins.PluginLoader, num uint64) {
header, _ = rlp.EncodeToBytes(v) header, _ = rlp.EncodeToBytes(v)
} }
} }
if bodyi, ok := update[chainFreezerBodiesTable]; ok { if bodyi, ok := update[ChainFreezerBodiesTable]; ok {
switch v := bodyi.(type) { switch v := bodyi.(type) {
case []byte: case []byte:
body = v body = v
@ -94,7 +94,7 @@ func PluginCommitUpdate(pl *plugins.PluginLoader, num uint64) {
body, _ = rlp.EncodeToBytes(v) body, _ = rlp.EncodeToBytes(v)
} }
} }
if receiptsi, ok := update[chainFreezerReceiptTable]; ok { if receiptsi, ok := update[ChainFreezerReceiptTable]; ok {
switch v := receiptsi.(type) { switch v := receiptsi.(type) {
case []byte: case []byte:
receipts = v receipts = v
@ -102,7 +102,7 @@ func PluginCommitUpdate(pl *plugins.PluginLoader, num uint64) {
receipts, _ = rlp.EncodeToBytes(v) receipts, _ = rlp.EncodeToBytes(v)
} }
} }
if tdi, ok := update[chainFreezerDifficultyTable]; ok { if tdi, ok := update[ChainFreezerDifficultyTable]; ok {
switch v := tdi.(type) { switch v := tdi.(type) {
case []byte: case []byte:
td = v td = v