Repository navigation
test: sync mempools before burying a tx (fix feature_llmq_chainlocks.py on v23.1.x) - #7985
Conversation
ChainLock signers count a transaction's age from when they first saw it. The masternode helpers bumped mocktime before the tx had reached the other nodes, so a tx without an islock was still too new for them when the block arrived and the block wasn't ChainLocked until mocktime moved another 10 minutes. Since dashpay#7858 provider transactions are no longer IS-locked, so this breaks feature_llmq_chainlocks.py on v23.1.x. Backport of 2f33a23 from develop (part of dashpay#7858), which was left out of the v23.1.x backport. develop has bury_tx on DashTestFramework (43cfe71), so the sync is added at the same three call sites by hand here. (cherry picked from commit 2f33a23) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Final review complete — no blockers (commit a0d75e2) · triage: low |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
The change correctly synchronizes mempools before advancing mocktime for the three provider-transaction burial sequences, matching the upstream fix adapted to the v23.1.x helper layout. No in-scope correctness issues were found. Build checks for the touched test framework were still in progress or queued at the snapshot, with no relevant failures reported.
Review provenance
Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); reviewer 3: gpt-6.1-sol (agent: phase2-reviewer, role: backport-reviewer); reviewer 4: gpt-6.1-sol (agent: phase2-reviewer, role: dash-core-commit-history); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.1-sol(effort low) — This is a small, contained test-framework change that synchronizes mempools at three masternode transaction setup points without altering production behavior or consensus-critical code. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 97% left, weekly 79% left; passed overgemini-3.8-flash-high(antigravity quota lookup failed) - Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort medium); agentphase2-reviewer,gpt-6.1-sol— backport-reviewer (completed, effort medium); agentphase2-reviewer,gpt-6.1-sol— dash-core-commit-history (completed, effort medium); agentphase2-reviewer
Out-of-scope follow-up suggestions (1)
These are valid observations, but they are outside this PR's scope and should be handled in separate issues or author/maintainer-requested PRs rather than blocking this review.
- Track feature_asset_locks.py flakiness on v23.1.x — The PR reports that feature_asset_locks.py fails intermittently both with and without this change, showing mempool-size and quorum-mining timeouts after masternode setup. This appears pre-existing and is not introduced or worsened by the patch.
- Follow-up: Track the v23.1.x feature_asset_locks.py flakiness in a separate issue or follow-up change.
Issue being fixed or feature implemented
feature_llmq_chainlocks.pyfails on v23.1.x intest_bestCLHeightDiff(line 301): the block never gets ChainLocked. Since #7858, provider transactions aren't IS-locked any more. ChainLock signers count a transaction's age from when they first saw it, and the test helpers bump mocktime before a new ProTx has reached the other nodes. So when the block arrives, the signers still consider the ProTx too new and don't sign the ChainLock.On develop, #7858 fixed this with a test-framework commit (2f33a23, "test: sync mempools before burying a tx"), but the v23.1.x backport of #7858 left that commit out.
What was done?
Backported 2f33a23. On develop,
bury_txlives onDashTestFramework(43cfe71) and does the mocktime bump itself. That refactor isn't on v23.1.x, so this PR addsself.sync_mempools()before the mocktime bump at the same three call sites by hand: the collateral and the ProRegTx indynamically_prepare_masternode, and the ProUpServTx indynamically_evo_update_service. Test-only change.How Has This Been Tested?
Ran against a v23.1.10 build:
feature_llmq_chainlocks.pywithout the change: failed 2/2 attest_bestCLHeightDiff(line 301).feature_dip3_v19.py,feature_llmq_evo.py,feature_llmq_singlenode.py,p2p_platform_ban.py.feature_asset_locks.pyis flaky with and without this change: 5/6 passed each way when run alternately under the same load. The failures show the same symptoms either way (mempool-size and quorum-mining timeouts) and occur after the masternode setup this change touches.Breaking Changes
None.
Checklist:
🤖 Generated with Claude Code