forked from cerc-io/laconicd-deprecated
Update Commit godoc
This commit is contained in:
parent
90a3dd3d46
commit
d4fdf1f47a
@ -306,7 +306,10 @@ func (csdb *CommitStateDB) StorageTrie(addr ethcmn.Address) ethstate.Trie {
|
|||||||
// Persistance
|
// 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) {
|
func (csdb *CommitStateDB) Commit(deleteEmptyObjects bool) (root ethcmn.Hash, err error) {
|
||||||
defer csdb.clearJournalAndRefund()
|
defer csdb.clearJournalAndRefund()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user