trie: copy preimage store pointer in StateTrie.Copy (#31158)
This fixes an error where executing `evm run --dump ...` omits preimages from the dump (because the statedb used for execution is a copy of another instance).
This commit is contained in:
parent
da71839a27
commit
58f65c60c2
|
@ -1,12 +1,13 @@
|
|||
{
|
||||
"root": "b444481d1367188172f8c6091e948aaa68bae763fd26d6b9e994306a66bf69f9",
|
||||
"accounts": {
|
||||
"pre(0x30d7a0694cb29af31b982480e11d7ebb003a3fca4026939149071f014689b142)": {
|
||||
"0x0000000000000000000000007265636569766572": {
|
||||
"balance": "0",
|
||||
"nonce": 0,
|
||||
"root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||
"codeHash": "0x3e48ef54b89079a075f3b8fc253c657a86b110a7aed3568c1517b10edf2c3eb6",
|
||||
"code": "0x6040",
|
||||
"address": "0x0000000000000000000000007265636569766572",
|
||||
"key": "0x30d7a0694cb29af31b982480e11d7ebb003a3fca4026939149071f014689b142"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
{
|
||||
"root": "b444481d1367188172f8c6091e948aaa68bae763fd26d6b9e994306a66bf69f9",
|
||||
"accounts": {
|
||||
"pre(0x30d7a0694cb29af31b982480e11d7ebb003a3fca4026939149071f014689b142)": {
|
||||
"0x0000000000000000000000007265636569766572": {
|
||||
"balance": "0",
|
||||
"nonce": 0,
|
||||
"root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
|
||||
"codeHash": "0x3e48ef54b89079a075f3b8fc253c657a86b110a7aed3568c1517b10edf2c3eb6",
|
||||
"code": "0x6040",
|
||||
"address": "0x0000000000000000000000007265636569766572",
|
||||
"key": "0x30d7a0694cb29af31b982480e11d7ebb003a3fca4026939149071f014689b142"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -275,6 +275,7 @@ func (t *StateTrie) Copy() *StateTrie {
|
|||
trie: *t.trie.Copy(),
|
||||
db: t.db,
|
||||
secKeyCache: t.secKeyCache,
|
||||
preimages: t.preimages,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue