query: pending SH records join at live tip - #207
Merged
Conversation
Durable seed still lags accept, but collected create records sit on the write-behind job. Wallet SH reads merge those with the index and pin that visible height so mempool can drop confirmed txs without a hole between confirmed overlay and lagging Class B.
rearden-grok Bot
pushed a commit
that referenced
this pull request
Aug 23, 2026
#207 joins pending creates at live tip, but rbtc-sh-wb popped the job before the watermark advanced. generate's drain then saw an empty queue while apply was still running, MiniWallet scantxoutset pinned the pre-tip view, and a spent coin looked live (bip68 orphaned). Hold the job in sh_applying until apply finishes so pending join covers that window.
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.
Why
#206 left scripthash durable seed off the tip-accept path and pinned
wallet SH reads at the SH watermark. Mempool still drops confirmed
txs at live tip. Between those two, a tx can vanish: gone from
mempool, not yet in the lagging SH snapshot.
What
Collect create records onto the write-behind job at enqueue (cheap).
SH history/balance/utxo merge those RAM records with the durable
index and pin that visible height (live tip while jobs sit in RAM).
Durable
put_createseed still happens onrbtc-sh-wb.Accept still does not wait on locate_head.
Follow-up to #206 (already merged).