no merge nodeset throws nil

This commit is contained in:
Michael Shaw 2022-09-01 09:42:24 -04:00
parent 31f1a44dd6
commit 535fe236d5

View File

@ -135,7 +135,9 @@ func (lt *localTrie) commit() error {
return err
}
//new trie.Commit method signature also requires Update with returned NodeSet
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 {