test: add PoX-5 support for TestChainstate - #7508
Open
francesco-stacks wants to merge 13 commits into
Open
Conversation
francesco-stacks
marked this pull request as ready for review
August 18, 2026 14:37
Coverage Report for CI Build 32149491576Coverage increased (+0.01%) to 86.578%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions326 previously-covered lines in 32 files lost coverage.
Coverage Stats
💛 - Coveralls |
brice-stacks
approved these changes
Aug 21, 2026
brice-stacks
left a comment
Contributor
There was a problem hiding this comment.
nice! just one tiny nit.
| block.header.tx_merkle_root = compute_tx_merkle_root(&block.txs); | ||
| block.header.state_index_root = self | ||
| .compute_nakamoto_marf_root(block.header.timestamp, &block.txs) | ||
| .unwrap_or_else(|e| TrieHash::ZERO); |
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.
Description
Builds on top of #7507
Update
TestChainstateto mine through Epoch 4.0 into PoX-5 cycles (and on into 4.1). Previously, any test crossing a reward cycle into Epoch 4.0 failed, because the harness only knew how to stack viapox-4.It's unfortunately a lot of code, but 3-4k lines of changes are just the MARF hashes of the snapshots.
setup_pox_5_signers: idempotent signer enrollment (signer-manager contract per key, key registration, staking), run automatically when advancing into Epoch 4.0+.Applicable issues
Additional info (benefits, drawbacks, caveats)
Checklist
docs/property-testing.md)changelog.d/README.md). If this PR breaksanything for node operators or users, or requires them to manually do
anything (such as adjust a setting), use the breaking category.
rpc/openapi.yamlfor RPC endpoints,event-dispatcher.mdfor new events)clarity-benchmarkingrepo