Repository navigation
3.x.x: live regtest: a dense-cadence soak lands every found block, rebuilds in budget and holds RSS flat (#521 scenario 5) - #540
Merged
Conversation
…builds in budget and holds RSS flat (#521 scenario 5) Two throttled CPU miners, one on each server, mine the regtest node's easy target, so the pool's own blocks land a few seconds apart. Every landing bumps the payout revision that the other server's work was built on (the #478 path). They run for PRISM_DENSE_SOAK_SECONDS (default 600). The test is #[ignore], nightly only: it is added to test/prism-nightly-gated-tests.txt, which the load-harness nightly's live-nightly job runs and proves with the gate manifest. It asserts four things: - Every block the pool found on live work is a candidate. Live work means an accepted share outside stale grace whose hash meets the network target. The exception is a race already lost when the block was found: the block that won its height was captured before the share was accepted. - Every candidate settles. It ends submitted on the node's active chain, orphaned, or abandoned before its offer only because its parent was superseded by a landed pool block at its height. Every block on the chain since the soak began is a confirmed pool block. - Each server's accepted-block-to-revision-work p99 (#458) stays within PRISM_DENSE_SOAK_REBUILD_P99_SECONDS (default 5), with no degraded landing. - Each server's RSS median over the last fifth of the soak is within a quarter, plus 32 MiB, of its median over the second fifth. After the miners stop, seven blocks that are not the pool's bury the last landings past the orphan depth. A race lost at the very end is therefore proven before the candidates are read. Refs #521 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
Review ledger (head
|
| # | What the soak surfaced | Resolution |
|---|---|---|
| 1 | Accepted block solutions outnumbered candidates. A solution on a tip already replaced is accepted under stale grace, and that is no block to land | Candidates are checked against accepted shares outside stale grace whose hash meets the network target |
| 2 | A live-work block that was never captured: the other server's block at the same height had been captured about 1 s before this share was accepted | Allowed only as a race already lost when the block was found: the height's winner must have been captured before the share was accepted. Any other uncaptured block fails |
| 3 | Candidates ending abandoned with parent superseded, about 100 ms after capture |
By design (coordinator.rs: "a genuine parent change abandons"). Allowed only with that reason and a landed pool block at the height; payout revision or parent superseded (#478 capture off) fails |
| 4 | reconciliation rows at the end: races lost at the very end need 6 confirmations to be proven orphaned |
Seven blocks that are not the pool's bury the last landings after the miners stop, before the candidates are read |
Local verification (pinned qbitd, private PostgreSQL 16 with fsync on, required-integration mode):
- The
live-nightlycommand over all three listed variants passes, andcheck_gate_manifest.pyconfirms all three executed. - Soak runs at 120 s: 41-47 blocks landed, one every 2.6-2.9 s. Every live-work block was captured. Revision-work p99 was at most 0.5 s on both servers, and RSS stayed flat at about 38-40 MB.
- Mutant: a server that leaks 4 MiB per accepted share fails the soak (server 0 RSS 73 -> 135 MiB against a 124 MiB ceiling).
This was referenced Sep 28, 2026
djh58
added a commit
that referenced
this pull request
Sep 28, 2026
…540) (#567) Brings prism-load-nightly.yml on main up to date with its copy on 3.x.x. The two files are now byte-identical: - #559: the plan job pins one commit for the whole matrix, a single build job shares the release binaries, and the preset names change; - #540: scenario 5's dense-cadence soak joins the live-nightly list, with a comment-only change here. Refs #521 Co-authored-by: Claude Opus 5.5 <[email protected]>
6 tasks
This was referenced Oct 5, 2026
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.
Refs #521 (scenario 5: dense-cadence landings and a soak).
What
One new nightly-only case in
live_regtest(tests/support/live_dense_soak.rs, registered asdense_soak_tests), plus its id intest/prism-nightly-gated-tests.txt. The load-harness nightly'slive-nightlyjob runs that list with--ignored --exactand proves it with the gate manifest. Shared support is untouched apart from the three-linemodregistration. The workflow change is a comment only: the job reads the list from the ref it checks out.Two throttled CPU miners, one on each server, mine the regtest node's easy target, so the pool's own blocks land a few seconds apart. Every landing bumps the payout revision the other server's work was built on, which is the #478 path. The test runs for
PRISM_DENSE_SOAK_SECONDS(default 600). It asserts:Every found block is captured. Every block the pool found on live work is a candidate. Live work means an accepted share outside stale grace whose hash meets the network target. The exception is a race already lost when the block was found: the block that won its height had been captured before the share was accepted.
Every candidate settles. It ends in one of three states:
submittedon the node's active chain;orphaned;Every block on the chain since the soak began is a confirmed pool block.
Rebuilds stay within budget. Each server's
qbit_prism_accepted_block_to_revision_work_secondsp99 (3.x.x: Landing-phase metrics — time from block acceptance to new-revision work, with the alerts 2.x.x had #458) stays withinPRISM_DENSE_SOAK_REBUILD_P99_SECONDS(default 5), with nodegradedlanding.RSS stays flat. Each server's RSS median over the last fifth of the soak is within a quarter, plus 32 MiB, of its median over the second fifth.
After the miners stop, seven blocks that are not the pool's bury the last landings past the orphan depth, so a race lost at the very end is proven before the candidates are read.
Verification
cargo fmt --checkandcargo clippy -p qbit-prism-server --test live_regtest -D warningsare clean.live-nightlycommand over all three listed variants passes locally against the pinned qbitd and PostgreSQL 16 in required-integration mode, andcheck_gate_manifest.pyconfirms all three executed. The variants are 3.x.x: live regtest: a qbitd stop or crash around submitblock offers each block once and lands or reconciles it (#521 scenario 4) #523's-reindex, 3.x.x: follow weighted multi-address shares to spent outputs on a live regtest node (#521 scenario 7) #524's weighted recipients, and this soak at 120 s.parent superseded;#[ignore]and listed only for the nightly.🤖 Generated with Claude Code