You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is to avoid calculating the transactionsRoot and receiptsRoot twice during syncing. The transactionsRoot along with the ommersHash, withdrawalsRoot and requestsRoot is calculated in the GetBodiesFromPeerTask to verify the blocks that have been downloaded and again in MainnetBlockBodyValidator when the block is imported. Similar story for receipts with it being calculated once in the download to verify and again in the MainnetBlockBodyValidator.
A previous PR was made to improve this #5679 but the suggested approach is to use a cache instead.
Acceptance Criteria
Removes duplicate calculation of roots
Improves syncing time
The text was updated successfully, but these errors were encountered:
Description
The idea is to avoid calculating the transactionsRoot and receiptsRoot twice during syncing. The transactionsRoot along with the ommersHash, withdrawalsRoot and requestsRoot is calculated in the GetBodiesFromPeerTask to verify the blocks that have been downloaded and again in MainnetBlockBodyValidator when the block is imported. Similar story for receipts with it being calculated once in the download to verify and again in the MainnetBlockBodyValidator.
A previous PR was made to improve this #5679 but the suggested approach is to use a cache instead.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: