Skip to content

Question about transaction pool parameter source and ordering mechanism in op-rbuilder #254

@Arisawa-v

Description

@Arisawa-v

Hi team,

I have a question about the transaction pool implementation in op-rbuilder and would appreciate some clarification:

I'm trying to understand where the pool parameter comes from in the spawn_payload_builder_service function. From my code analysis, I can see:

// In flashblocks/service.rs line 75-80
async fn spawn_payload_builder_service(
    self,
    ctx: &BuilderContext<Node>,
    pool: Pool,  // <-- Where does this pool come from?
    _: OpEvmConfig,
) -> eyre::Result<PayloadBuilderHandle<<Node::Types as NodeTypes>::Payload>>

It appears that the pool is configured in launcher.rs using OpPoolBuilder<FBPooledTransaction> and then passed by the Reth framework during node initialization. Is this understanding correct? So, the pool is PendingPool in Reth?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions