add state tire print function

This commit is contained in:
jmlee 2019-07-16 16:09:46 +09:00
parent f5100f8f43
commit fe2c0dccd8

View file

@ -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)
}