core/state: polish

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
Gary Rong 2025-03-26 13:15:46 +08:00 committed by jsvisa
parent f595cb6653
commit 74cc372dec

View file

@ -55,9 +55,10 @@ type accountUpdate struct {
// The map key refers to the **HASH** of the raw storage slot key. // The map key refers to the **HASH** of the raw storage slot key.
storages map[common.Hash][]byte storages map[common.Hash][]byte
// storagesOrigin store the original values of mutated slots in prefix-zero-trimmed RLP format. // storagesOrigin store the original values of mutated slots in
// if `rawStorageKey` is true, the map key refers to the **RAW** storage slot key, // prefix-zero-trimmed RLP format.
// else the **HASH** of the raw storage slot key. // - the map key refers to the **RAW** slot key if `rawStorageKey` is true
// - the map key refers to the **HASH** of slot key if `rawStorageKey` is false
storagesOrigin map[common.Hash][]byte storagesOrigin map[common.Hash][]byte
} }