Skip to content

Conversation

@Evalir
Copy link
Member

@Evalir Evalir commented Feb 5, 2026

No description provided.

Copy link
Member Author

Evalir commented Feb 5, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Member

@prestwich prestwich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the task is too heavy. we just need a fire-and-forget dispatch in the flashbots spawned future. I also think we're duplicating the sidecar and passing it around too much?

/// Builds a MEV bundle from a signed transaction envelope and simulation result.
fn build_bundle(&self, envelope: &TxEnvelope, sim_result: &SimResult) -> EthSendBundle {
let tx_bytes: Bytes = envelope.encoded_2718().into();
let txs = self.build_bundle_body(sim_result, tx_bytes);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactor while we're here: the build_bundle_body method doesn't use self. which implies that it is on the wrong type. what type should it be on?

Copy link
Member Author

@Evalir Evalir Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is something i was kinda pondering before, along with sidecar things. both building the sidecar, and the bundle body, could live on SimResult? it doesn't really change once returned, so it could just be memoized

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that seems fine

@Evalir Evalir requested a review from prestwich February 6, 2026 13:39
@Evalir Evalir force-pushed the evalir/pylon-integration branch from 452582a to c53b448 Compare February 9, 2026 13:04
@Evalir Evalir marked this pull request as ready for review February 9, 2026 17:53
@Evalir Evalir requested a review from dylanlott as a code owner February 9, 2026 17:53
@Evalir Evalir force-pushed the evalir/pylon-integration branch from 091a379 to fb4b0e1 Compare February 10, 2026 14:00
Copy link
Member

@prestwich prestwich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just this afaict

"Submitted MEV bundle to Flashbots, received OK response"
);

match pylon.post_blob_tx(block_tx).await {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is too much nesting. refactor to use early returns and avoid nesting matches

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