mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
add state tire print function
This commit is contained in:
parent
f5100f8f43
commit
fe2c0dccd8
1 changed files with 7 additions and 0 deletions
|
|
@ -726,3 +726,10 @@ func (s *StateDB) Commit(deleteEmptyObjects bool) (root common.Hash, err error)
|
||||||
})
|
})
|
||||||
return root, err
|
return root, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Print shows all accounts in state trie (jmlee)
|
||||||
|
func (s *StateDB) Print() {
|
||||||
|
stateString := string(s.Dump(false, false, true))
|
||||||
|
log.Info("### print state trie ###")
|
||||||
|
log.Info(stateString)
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue