Update Commit godoc

This commit is contained in:
Aleksandr Bezobchuk 2018-10-04 12:15:16 -04:00
parent 90a3dd3d46
commit d4fdf1f47a

View File

@ -306,7 +306,10 @@ func (csdb *CommitStateDB) StorageTrie(addr ethcmn.Address) ethstate.Trie {
// Persistance
// ----------------------------------------------------------------------------
// TODO: Commit writes the state ...
// Commit writes the state to the appropriate KVStores. For each state object
// in the cache, it will either be removed, or have it's code set and/or it's
// state (storage) updated. In addition, the state object (account) itself will
// be written. Finally, the root hash (version) will be returned.
func (csdb *CommitStateDB) Commit(deleteEmptyObjects bool) (root ethcmn.Hash, err error) {
defer csdb.clearJournalAndRefund()