V1.10.23 statediff v4 wip #272

Closed
ABastionOfSanity wants to merge 2 commits from v1.10.23-statediff-v4-wip into v1.10.23-statediff-v4
Showing only changes of commit 535fe236d5 - Show all commits
+3 -1
View File
@@ -135,7 +135,9 @@ func (lt *localTrie) commit() error {
return err
}
//new trie.Commit method signature also requires Update with returned NodeSet
lt.trieDB.Update(trie.NewWithNodeSet(trieNodes))
if trieNodes != nil {
lt.trieDB.Update(trie.NewWithNodeSet(trieNodes))
}
// commit trieDB to the underlying ethdb.Database
if err := lt.trieDB.Commit(ltHash, false, nil); err != nil {