no merge nodeset throws nil
This commit is contained in:
parent
31f1a44dd6
commit
535fe236d5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user