TODOs#7880
Open
sstanculeanu wants to merge 12 commits into
Open
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## feat/testnet-fixes #7880 +/- ##
======================================================
- Coverage 77.62% 77.60% -0.02%
======================================================
Files 885 885
Lines 125425 125495 +70
======================================================
+ Hits 97357 97395 +38
- Misses 21585 21614 +29
- Partials 6483 6486 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…hash should be the last execution result roothash
miiu96
reviewed
Jun 18, 2026
|
|
||
| func (bp *baseProcessor) recreateTrieIfNeeded() error { | ||
| rootHash := bp.blockChain.GetCurrentBlockRootHash() | ||
| prevHeader := bp.blockChain.GetCurrentBlockHeader() |
Contributor
There was a problem hiding this comment.
maybe you can extract this code in a new function ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reasoning behind the pull request
Proposed changes
// TODO add also max estimated block gas capacity+// TODO add also max estimated block gas capacity - used gas must be lower than this-> implemented, now uses the block capacity from economics data// TODO: check if miniblocks and txs are set in a deterministic way (check if there are map iterations that can generate non-deterministic results)-> checked with @ssd04 , should be safe to remove todo// todo: extract the epoch change proposal execution result here-> fixed, now all execution results are checked to find the proper epoch changed proposed header// TODO: analyse error handling here-> checked with @ssd04 , this is old code and should be safe as before// TODO use the right object, not a disabled one-> fixed, integrated the real transactions processor// TODO use the right information below-> fixed, now data is fetched from chain handler// TODO adjust this method if needed for Supernova-> removed todo, execution state should be correctly loaded at bootstrap from the headers// TODO: the trigger would need to be changed upon commit of a block with the epoch start results-> removed todo, already handled// TODO: set proper finalized header in outport-> checked with @BeniaminDrasovean , proper data is already set// TODO: maybe rename this to reflect last execution results-> removed todo, not necessarily needed// todo: check empty mini blocks vs nil. Same for block.Body.MiniBlocks-> removed todo, GetMiniBlockHeaderHandlers and GetMiniBlocks already normalizez empty slice to nil// TODO: sanity check use the verify execution results method-> fixed, added call to VerifyHeaderExecutionResults// TODO: this account adapter may be required to be changed as the roothash should be the last execution result roothash-> fixed, now trie is recreated everywhereTesting procedure
Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
featbranch created?featbranch merging, do all satellite projects have a proper tag insidego.mod?