Skip to content

fix: no auth subscription must only wait for the expected bundle ID.#47

Open
serejke wants to merge 1 commit intojito-labs:masterfrom
serejke:subscription-to-bundle-id
Open

fix: no auth subscription must only wait for the expected bundle ID.#47
serejke wants to merge 1 commit intojito-labs:masterfrom
serejke:subscription-to-bundle-id

Conversation

@serejke
Copy link

@serejke serejke commented May 22, 2024

Overview

When jito-searcher-cli send-bundle is run in no-auth mode, the bundle_results_subscription

let mut bundle_results_subscription = client

emits other searchers' bundles.

The current code subscribes to the only .next() bundle


even though it is not necessarily the signer's bundle.

So the script fails with an error akin to:

Sending bundle failed: SimulationFailure("Kze3b5YyyHCPvD8TRRQUdHuXT1Ch6dmUUPYsaC6qSTfyGzxpkjnGkD8xgCQXyDoAC71FZyuU7aXYzJXAqgJm8QB", Some("A transaction in the bundle failed to execute: [signature=Kze3b5YyyHCPvD8TRRQUdHuXT1Ch6dmUUPYsaC6qSTfyGzxpkjnGkD8xgCQXyDoAC71FZyuU7aXYzJXAqgJm8QB, error=Error processing Instruction 3: custom program error: 0x7d0]"))

(other searcher's failed bundle)

Fix

Expect only the sent bundle by UUID and filter out everything else.

@serejke
Copy link
Author

serejke commented Nov 18, 2024

@mdr0id @dgski hey Jito team, it's been a while this PR is waiting for a code review. I'm doing some personal forks cleanup and was wondering if you could merge it any time soon, thanks

@serejke serejke force-pushed the subscription-to-bundle-id branch from ab96995 to 0e3e862 Compare November 18, 2024 07:24
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.

1 participant