Skip to content

Conversation

benaadams
Copy link
Member

@benaadams benaadams commented Apr 8, 2025

Changes

  • If no new txs have been added to pool since last block build; skip the improvement and wait for next delay.
  • Is no reason to build a block if it will build the same as previous
  • Improves block production even more as building a block takes longer than waiting for additional txs

Types of changes

What types of changes does your code introduce?

  • Optimization

Testing

Requires testing

  • No

If yes, did you write tests?

  • Yes - modified existing test

@benaadams benaadams requested review from Scooletz, LukaszRozmej, MarekM25 and marcindsobczak and removed request for Scooletz April 8, 2025 07:00
@benaadams benaadams merged commit a2b371b into master Apr 8, 2025
80 checks passed
@benaadams benaadams deleted the tx-block-build branch April 8, 2025 07:50
@benaadams benaadams changed the title Skip block build if no new tx have been added Skip block build until new tx have been added Apr 9, 2025
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