From d4fdf1f47a765304d28a1cb3fe75fb4a75f105a1 Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Thu, 4 Oct 2018 12:15:16 -0400 Subject: [PATCH] Update Commit godoc --- state/statedb.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()