Skip to content

test: split journeys that are not one story - #918

Merged
reardencode merged 5 commits into
masterfrom
test/split-journey-stories
Oct 5, 2026
Merged

reardencode merged 5 commits into
masterfrom
test/split-journey-stories

Conversation

@rearden-grok

@rearden-grok rearden-grok Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Journey tests that opened one node and then ran chapters that do not observe each other are now separate named tests.

  • Tip announce: one height-102 regtest in a OnceLock. Each post-pad case opens a private hub on a copy, including the three that connect, mark invalid, or reorg. Genesis IBD and the synthetic header/inv case stay on their own genesis hubs, because a fresh height-102 tip is not in initial block download.
  • Self-announce leaves the header-DoS chain. Clearnet externalip and the onion/i2p follow-up stay one test: the overlay beat reads the address book the clearnet beat set. Header DoS still grows one chain through CLTV and height 300.
  • Sigop-adjusted mempool cases leave mempool_accept_life. Those beats restore an empty pool. The orphan → eviction arc stays one test.
  • rpc_regtest_from_genesis keeps the short chain through the first submitblock rejects. rpc_regtest_mature_chain_ops mines its own hub to height 130 (inside the 121..144 window) and runs the mature wallet, invalidate, and the mainnet view.

No production behavior change. No changelog fragment.

Test plan

  • cargo test -p rbitcoin-net --lib -- announce (22 passed)
  • cargo test -p rbitcoin-mempool --lib -- sigop_adjusted mempool_accept_life (includes both new names)
  • cargo test -p rbitcoin-rpc --lib -- rpc_regtest_ (both new names)
  • cargo fmt --all -- --check
  • cargo clippy -p rbitcoin-net -p rbitcoin-mempool -p rbitcoin-rpc --all-targets -- -D warnings
  • ./scripts/ast-grep.sh

rearden-grok Bot added 5 commits October 4, 2026 21:52
The post-pad chapters each open their own peer and do not observe
each other. Prefill connects a spend of the height-1 coinbase before
the high-bandwidth relay case builds its own spend of that coinbase.
One OnceLock chain, a private hub per case. Genesis IBD and the
synthetic header/inv case stay off that chain.
Clearnet externalip and the onion/i2p follow-up share an address book.
They never read the header-dos chain.
Each sigop beat restores an empty pool. The accept-life arc spends
coins those beats do not create.
Genesis rejects and the post-maturity wallet are different chains.
The mature hub mines itself to height 130, inside the 121..144 window
the hashps beat requires.
The catalog and the finding citations follow the new test names.
@reardencode
reardencode merged commit 461153f into master Oct 5, 2026
18 checks passed
@rearden-grok
rearden-grok Bot deleted the test/split-journey-stories branch October 6, 2026 05:23
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