mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Update trie/verkle.go
Co-authored-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
This commit is contained in:
parent
60ff66f1b4
commit
7a51dce0ff
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ func (t *VerkleTrie) RollBackAccount(addr common.Address) error {
|
||||||
codeSize := binary.LittleEndian.Uint64(codeSizeBytes)
|
codeSize := binary.LittleEndian.Uint64(codeSizeBytes)
|
||||||
|
|
||||||
// Delete the account header + first 64 slots + first 128 code chunks
|
// Delete the account header + first 64 slots + first 128 code chunks
|
||||||
_, err = t.root.(*verkle.InternalNode).DeleteAtStem(codeSizeKey, t.nodeResolver)
|
_, err = t.root.(*verkle.InternalNode).DeleteAtStem(codeSizeKey[:31], t.nodeResolver)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error rolling back account header: %w", err)
|
return fmt.Errorf("error rolling back account header: %w", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue