mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 07:58:22 -05:00
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:
@@ -109,6 +109,7 @@ func (b *BeaconState) SetBlockRoots(val [][]byte) error {
|
||||
|
||||
b.state.BlockRoots = val
|
||||
b.markFieldAsDirty(blockRoots)
|
||||
b.rebuildTrie[blockRoots] = true
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user