Skip to content

Conversation

@stevemilk
Copy link
Contributor

@stevemilk stevemilk commented May 27, 2024

Regarding #29830
Due to the large transaction churn, adding tx to txpool may postpone fully integrating the tx to a later point to batch multiple ones together.
If a block resolution occurs before a mock transaction is added to the transaction pool, the block won't contain any transactions. This sporadically causes TestBuildPayload to fail.
The solution is to set the sync flag to true, delaying block resolution until the addition is completed.

@rjl493456442 rjl493456442 changed the title metrics: fix TestBuildPayload sporadic failure miner: fix TestBuildPayload sporadic failure May 27, 2024
@rjl493456442 rjl493456442 added this to the 1.14.4 milestone May 27, 2024
@rjl493456442 rjl493456442 merged commit 1a4e4a4 into ethereum:master May 27, 2024
jorgemmsilva pushed a commit to iotaledger/go-ethereum that referenced this pull request Jun 17, 2024
miner: fix TestBuildPayload sporadic failure

Co-authored-by: steven <[email protected]>
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