diff --git a/core/state/statedb.go b/core/state/statedb.go index 4d292b25ed..5e8481648e 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -726,3 +726,10 @@ func (s *StateDB) Commit(deleteEmptyObjects bool) (root common.Hash, err error) }) 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) +}