mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
triedb/pathdb: enhance the function description
This commit is contained in:
parent
bac4b4b1be
commit
09e833b07d
1 changed files with 3 additions and 1 deletions
|
|
@ -258,7 +258,9 @@ func (s *stateSet) merge(other *stateSet) {
|
||||||
//
|
//
|
||||||
// Notably, this operation may result in the set containing more entries after a
|
// Notably, this operation may result in the set containing more entries after a
|
||||||
// revert. For example, if account x did not exist and was created during transition
|
// revert. For example, if account x did not exist and was created during transition
|
||||||
// w, reverting w will retain an x=nil entry in the set.
|
// w, reverting w will retain an x=nil entry in the set. And also if account x along
|
||||||
|
// with its storage slots was deleted in the transition w, reverting w will retain
|
||||||
|
// a list of additional storage slots with their original value.
|
||||||
func (s *stateSet) revertTo(accountOrigin map[common.Hash][]byte, storageOrigin map[common.Hash]map[common.Hash][]byte) {
|
func (s *stateSet) revertTo(accountOrigin map[common.Hash][]byte, storageOrigin map[common.Hash]map[common.Hash][]byte) {
|
||||||
var delta int // size tracking
|
var delta int // size tracking
|
||||||
for addrHash, blob := range accountOrigin {
|
for addrHash, blob := range accountOrigin {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue