Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel receipts root to ComputeCommitment #12470

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Giulio2002
Copy link
Contributor

@Giulio2002 Giulio2002 commented Oct 24, 2024

Improve chain tip block times by around 3%

return fmt.Errorf("%w, txnIdx=%d, %v", consensus.ErrInvalidBlock, txTask.TxIndex, err) //same as in stage_exec.go
// This is an optimization to avoid running the post validation for every transaction in the block serially
// We only run it once for the last transaction in the block, this yields a +5% improvement in block processing time
if blockNum == maxBlockNum {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't understand this comment: every transaction in the block

  • we are already in txTask.Final section. so, how it can be every transaction?
  • if blockNum == maxBlockNum says me that you probably mean every block?
  • +5% improvement in block processing time - even if you exec 1 block on chain tip?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants