fix(subscriptions): bound chain evaluator tip by per-trigger decoder … - #51
Open
Rapha-btc wants to merge 1 commit into
Open
fix(subscriptions): bound chain evaluator tip by per-trigger decoder …#51Rapha-btc wants to merge 1 commit into
Rapha-btc wants to merge 1 commit into
Conversation
…progress Chain print subscriptions silently dropped events. The evaluator's block-source tip tracks block INGESTION, which runs ahead of decode; each event type is decoded by an independent, differently-paced decoder (print is heavier and trails ft_transfer). When the evaluator processed a height before the print decoder committed it, the print wasn't in decoded_events yet, the match was missed, and the forward-only cursor never revisited it. Bound the evaluator tip by the MIN decoder_checkpoints height over ONLY the decoders feeding the event types its active subscriptions read (derived from referencedEventTypes: decode.<event_type>.v1). A stalled decoder no subscription reads (e.g. a defunct pox4) is excluded and can never gate deliveries. Null floor -> fall back to the raw tip rather than stall. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YMvYzMv1qpiUMUeGA81bXB
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.
…progress
Chain print subscriptions silently dropped events. The evaluator's block-source tip tracks block INGESTION, which runs ahead of decode; each event type is decoded by an independent, differently-paced decoder (print is heavier and trails ft_transfer). When the evaluator processed a height before the print decoder committed it, the print wasn't in decoded_events yet, the match was missed, and the forward-only cursor never revisited it.
Bound the evaluator tip by the MIN decoder_checkpoints height over ONLY the decoders feeding the event types its active subscriptions read (derived from referencedEventTypes: decode.<event_type>.v1). A stalled decoder no subscription reads (e.g. a defunct pox4) is excluded and can never gate deliveries. Null floor -> fall back to the raw tip rather than stall.
Claude-Session: https://claude.ai/code/session_01YMvYzMv1qpiUMUeGA81bXB