Skip to content

store: stamp in-flight until at TipOnly start; drop on Class C - #273

Merged
reardencode merged 3 commits into
masterfrom
store/inflight-until-class-c
Aug 26, 2026
Merged

store: stamp in-flight until at TipOnly start; drop on Class C#273
reardencode merged 3 commits into
masterfrom
store/inflight-until-class-c

Conversation

@rearden-grok

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

Copy link
Copy Markdown
Contributor

Summary

  • lookup_started_hi advances when a lookup wave starts TipOnly (selected hi, before get_fk_by_txid_batch). hold_partial does not bump it.
  • note_lookup_ok / note_archived_creates stamp layer until = lookup_started_hi (pack max_height if that atomic is still None).
  • Prune drops a tagged layer iff Class C tip ≥ until. Write no longer freezes keep-until; drain+fence and class_a_hi are not drop gates. Disconnect still drop_from_height on pack height.

Live test (operator IBD)

Pause before stacking PR2 until a mainnet IBD shows:

  • iflight= stays until confirmed tip covers the lookup wave that was started when that pack was noted — not drop at Class A of the pack.
  • leftover_n unchanged vs baseline (LiveUnion still present).
  • No parent create_fk unresolved.

Do not open a mainnet datadir in the agent VM.

Test plan

  • cargo test -p rbitcoin-consensus --lib bq_resolve
  • cargo test -p rbitcoin-query --lib in_flight
  • cargo test -p rbitcoin-consensus --lib write_idempotent
  • cargo test -p rbitcoin-net --lib confirm
  • Required CI green (fmt, deny, clippy, ast-grep, test, windows, macos, multinode, coverage)

Made with Cursor

rearden-grok Bot and others added 3 commits August 26, 2026 08:16
Stamp until needs the in-progress wave height, not the last completed
one. hold_partial still leaves started_hi untouched.

Co-authored-by: Cursor <cursoragent@cursor.com>
Write keep-until and drain+fence/class_a_hi gates dropped layers too
early. Layer until is lookup_started_hi at create; prune waits until
confirmed tip covers that height.

Co-authored-by: Cursor <cursoragent@cursor.com>
Owner docs still described write freeze and class_a_hi drop. Match the
stamp-at-note / Class C tip prune.

Co-authored-by: Cursor <cursoragent@cursor.com>
@rearden-grok

rearden-grok Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

Retriggering CI: pull_request checks did not enqueue after open.

@rearden-grok rearden-grok Bot closed this Aug 26, 2026
@rearden-grok rearden-grok Bot reopened this Aug 26, 2026
@reardencode
reardencode merged commit 016587a into master Aug 26, 2026
18 of 25 checks passed
@rearden-grok
rearden-grok Bot deleted the store/inflight-until-class-c branch August 26, 2026 18:34
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