Skip to content

Commit

Permalink
Remove hash root check when getting trie from memory
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 24, 2022
1 parent aeee141 commit 015422a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions dot/state/roottottrie.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ func (r *rootToTrieMap) getFromMemOrDB(root common.Hash, db chaindb.Database) (
var calculatedRoot common.Hash
t, has := r.rootToTrie[root]
if has {
calculatedRootHash := t.MustHash()
if !calculatedRootHash.Equal(root) {
panic(fmt.Sprintf("trie does not have expected root, expected %s but got %s",
root, calculatedRootHash))
}
return t, nil
}

Expand Down

0 comments on commit 015422a

Please sign in to comment.