good morning!!!!

Skip to content
Snippets Groups Projects
Commit 2d5d6d9d authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

core/state: always commit in batches, just finish if not needed later

parent 1b8566a7
No related branches found
No related tags found
No related merge requests found
......@@ -353,7 +353,8 @@ func (s *StateDB) IntermediateRoot() common.Hash {
// Commit commits all state changes to the database.
func (s *StateDB) Commit() (root common.Hash, err error) {
return s.commit(s.db)
root, batch := s.CommitBatch()
return root, batch.Write()
}
// CommitBatch commits all state changes to a write batch but does not
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment