Description
Describe the feature
currently if a payloadjob is being resolved we start racing it against an empty block:
reth/crates/payload/basic/src/lib.rs
Lines 481 to 485 in 9f6fec2
and the default eth builder just tries to max fill the block:
reth/crates/ethereum/payload/src/lib.rs
Line 185 in 9f6fec2
so in case the payload is resolved immediately, we might end up with an empty block if we race it against an empty block.
instead we want to let the job know that it is being resolved right now
reth/crates/ethereum/payload/src/lib.rs
Lines 86 to 98 in 9f6fec2
for this we can introduce another bool marker, like:
reth/crates/payload/basic/src/lib.rs
Lines 786 to 787 in 9f6fec2
which is invoked by the job here:
reth/crates/payload/basic/src/lib.rs
Lines 355 to 357 in 9f6fec2
which we then can trigger when the payload is being resolved:
reth/crates/payload/basic/src/lib.rs
Line 458 in 9f6fec2
TODO
- introduce a bool toggle for the
BasicPayloadJob
that is passed as part ofBuildArguments
and a clone kept inBasicPayloadJob
- when the
BasicPayloadJob
is being resolved, it should fire the toggle - and the builder tx loop should break if the toggle is fired, similar to:
reth/crates/ethereum/payload/src/lib.rs
Lines 198 to 201 in 9f6fec2
Additional context
No response
Metadata
Metadata
Assignees
Type
Projects
Status