From 015422a3c9912a7b14aa80166454fcfce7886e29 Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (desktop)" Date: Thu, 20 Jan 2022 21:48:59 +0000 Subject: [PATCH] Remove hash root check when getting trie from memory --- dot/state/roottottrie.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/dot/state/roottottrie.go b/dot/state/roottottrie.go index f00463722f1..50f1ef64fc9 100644 --- a/dot/state/roottottrie.go +++ b/dot/state/roottottrie.go @@ -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 }