feat: replace BundlePoller polling with SSE streaming#269
Draft
Evalir wants to merge 1 commit intoevalir/eop/sse-tx-pollerfrom
Draft
feat: replace BundlePoller polling with SSE streaming#269Evalir wants to merge 1 commit intoevalir/eop/sse-tx-pollerfrom
Evalir wants to merge 1 commit intoevalir/eop/sse-tx-pollerfrom
Conversation
Member
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
3 tasks
Mirrors the TxPoller SSE change: subscribe to /bundles/feed via BuilderTxCache::subscribe_bundles for real-time delivery of new bundles, with an initial full_fetch on startup/block-env change and exponential backoff reconnect on error or stream end. Drops the 1s polling loop.
b4f7193 to
8c472ae
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Mirrors #259 (tx-poller SSE) for bundles. Replaces the 1s polling loop in
BundlePollerwith an SSE subscription to/bundles/feedviaBuilderTxCache::subscribe_bundles(newly exposed by the SDK, matched by the tx-pool-webservice endpoint).The structure matches
TxPollerexactly:full_fetchpaginates throughstream_bundlesto seed the cache on startup.subscribeopens the SSE stream and yieldsCachedBundles in real time.NotOurSlotis logged at trace level (expected when the builder is not slot-permissioned) in both the full-fetch and subscribe paths — avoids spurious warn-level noise.The public
check_bundle_cache()wrapper is dropped; the integration test now usesBuilderTxCache::stream_bundlesdirectly, matching the style oftx_poller_test.rs.Related Issue
Stacked on #259.
Testing
make fmtpassesmake clippypassesmake testpassescargo doc --no-depspasses with-D warningscargo test --features test-utils --no-runbuilds all integration tests