QSP-64 Conditional for Rebuilding BlockRoots Trie in State Setters (#6390)

* rebuild trie for block roots
* Merge refs/heads/master into rebuild-trie-fix
* Merge refs/heads/master into rebuild-trie-fix
This commit is contained in:
Raul Jordan
2020-06-24 21:03:18 -05:00
committed by GitHub
parent fb8be4d555
commit 0b178b446a

View File

@@ -109,6 +109,7 @@ func (b *BeaconState) SetBlockRoots(val [][]byte) error {
b.state.BlockRoots = val
b.markFieldAsDirty(blockRoots)
b.rebuildTrie[blockRoots] = true
return nil
}