Skip to content

query: adopt TipOnly loc onto in-flight stamp identity - #511

Merged
reardencode merged 2 commits into
masterfrom
query/inflight-skip-pruned-loc
Sep 14, 2026
Merged

reardencode merged 2 commits into
masterfrom
query/inflight-skip-pruned-loc

Conversation

@rearden-grok

@rearden-grok rearden-grok Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fresh IBD still halted at height 905 (ensure denserels/abs incomplete) after #510. That write is a later lookup wave: parent is already on disk and in InFlight, so load skipped TipOnly loc, while an intervening write had already pruned RAM loc at keep_until.
  • Same-wave tests never hit this: they either wait for parent then offer the child immediately (fill still sees RAM loc) or offer parent+child together so keep_until covers the child.
  • Stamp now copies skeleton loc onto an InFlight identity when TipOnly already has that create. Same-wave creates stay omitted from the skeleton; write fill still covers those holes.
  • With later-wave abs on the stamp, RAM loc only needs to cover same-wave holes. keep_until is the last started height (lookup_started_hi), not + 1. Fill of that write runs first.

Test plan

  • cargo test -p rbitcoin-query inflight_hit / write_create_loc
  • cargo test -p rbitcoin-net confirm_engine_pins_spend (187 / 496 / later-wave 905)
  • cargo test -p rbitcoin-consensus fill_
  • required GitHub Actions

rbitcoin-grok and others added 2 commits September 13, 2026 21:34
Later-wave child spends still skip disk loc in load because InFlight
holds the parent pin, while RAM loc is already gone after keep_until
write. Copy skeleton loc onto that identity so write ensure has abs
(mainnet 905).

Co-authored-by: Cursor <cursoragent@cursor.com>
Later-wave spends now take TipOnly loc on the in-flight identity, so
RAM loc only has to cover same-wave holes. Fill of the last started
write already ran; holding one extra height past lookup_started_hi is
no longer required.

Co-authored-by: Cursor <cursoragent@cursor.com>
@reardencode
reardencode merged commit d88ba6a into master Sep 14, 2026
16 checks passed
@rearden-grok
rearden-grok Bot deleted the query/inflight-skip-pruned-loc branch September 15, 2026 17:30
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