Crate reth_basic_payload_builder

Source
Expand description

A basic payload generator for reth.

Structs§

BasicPayloadJob
A basic payload job that continuously builds a payload with the best transactions from the pool.
BasicPayloadJobGenerator
The [PayloadJobGenerator] that creates BasicPayloadJobs.
BasicPayloadJobGeneratorConfig
Settings for the BasicPayloadJobGenerator.
BetterPayloadEmitter
Emits events when a better payload is built. Delegates the actual payload building to an inner PayloadBuilder.
BuildArguments
A collection of arguments used for building payloads.
PayloadBuilderStack
this structure enables the chaining of multiple PayloadBuilder implementations, creating a hierarchical fallback system. It’s designed to be nestable, allowing for complex builder arrangements like Stack<Stack<A, B>, C> with different
PayloadConfig
Static config for how to build a payload.
PayloadTaskGuard
Restricts how many generator tasks can be executed at once.
PendingPayload
A future that resolves to the result of the block building job.
PrecachedState
Pre-filled [CachedReads] for a specific block.
ResolveBestPayload
The future that returns the best payload to be served to the consensus layer.

Enums§

BuildOutcome
The possible outcomes of a payload building attempt.
BuildOutcomeKind
The possible outcomes of a payload building attempt without reused [CachedReads]
MissingPayloadBehaviour
Tells the payload builder how to react to payload request if there’s no payload available yet.
PayloadState
Represents the current state of a payload being built.

Traits§

PayloadBuilder
A trait for building payloads that encapsulate Ethereum transactions.

Functions§

is_better_payload
Checks if the new payload is better than the current best.

Type Aliases§

HeaderForPayload
Helper to access [NodePrimitives::BlockHeader] from PayloadBuilder::BuiltPayload.