diff --git a/state/statedb.go b/state/statedb.go index 8c39707e..f603401d 100644 --- a/state/statedb.go +++ b/state/statedb.go @@ -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()