Skip to content

query: pending SH records join at live tip - #207

Merged
reardencode merged 1 commit into
masterfrom
tip/sh-pending-visible
Aug 23, 2026
Merged

query: pending SH records join at live tip#207
reardencode merged 1 commit into
masterfrom
tip/sh-pending-visible

Conversation

@rearden-grok

@rearden-grok rearden-grok Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

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_create seed still happens on rbtc-sh-wb.

Accept still does not wait on locate_head.

Follow-up to #206 (already merged).

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.
@reardencode
reardencode merged commit 9aa101e into master Aug 23, 2026
12 checks passed
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.
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