Skip to content

Prepare for legacy sync#7379

Merged
sstanculeanu merged 4 commits into
feat/supernova-async-execfrom
prepare-for-legacy-sync
Oct 30, 2025
Merged

Prepare for legacy sync#7379
sstanculeanu merged 4 commits into
feat/supernova-async-execfrom
prepare-for-legacy-sync

Conversation

@sstanculeanu

Copy link
Copy Markdown
Collaborator

Reasoning behind the pull request

  • legacy sync should prepare tx pool as well

Proposed changes

  • added a similar mechanism for legacy sync, where OnExecutedBlock is called before syncing

Testing procedure

  • with feat branch

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

Comment thread process/sync/baseSync.go Outdated
}

currentHeader := boot.getCurrentBlock()
currentRootHash := boot.chainHandler.GetCurrentBlockRootHash()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if currentHeader is genesis, can you take the roothash from it instead?
I think getCurrentBlockRootHash will return nil if we only have genesis block.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@sstanculeanu sstanculeanu merged commit eed523d into feat/supernova-async-exec Oct 30, 2025
8 of 9 checks passed
@sstanculeanu sstanculeanu deleted the prepare-for-legacy-sync branch October 30, 2025 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants