Skip to content

test: sync mempools before burying a tx (fix feature_llmq_chainlocks.py on v23.1.x) - #7985

Merged
PastaPastaPasta merged 1 commit into
dashpay:v23.1.xfrom
PastaPastaPasta:fix/v23.1.x-bury-tx-sync-mempools
Nov 1, 2026
Merged

PastaPastaPasta merged 1 commit into
dashpay:v23.1.xfrom
PastaPastaPasta:fix/v23.1.x-bury-tx-sync-mempools

Conversation

@PastaPastaPasta

Copy link
Copy Markdown
Member

Issue being fixed or feature implemented

feature_llmq_chainlocks.py fails on v23.1.x in test_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_tx lives on DashTestFramework (43cfe71) and does the mocktime bump itself. That refactor isn't on v23.1.x, so this PR adds self.sync_mempools() before the mocktime bump at the same three call sites by hand: the collateral and the ProRegTx in dynamically_prepare_masternode, and the ProUpServTx in dynamically_evo_update_service. Test-only change.

How Has This Been Tested?

Ran against a v23.1.10 build:

  • feature_llmq_chainlocks.py without the change: failed 2/2 at test_bestCLHeightDiff (line 301).
  • With the change: passed 5/5.
  • The other tests that use these helpers pass: feature_dip3_v19.py, feature_llmq_evo.py, feature_llmq_singlenode.py, p2p_platform_ban.py.
  • feature_asset_locks.py is 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:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

🤖 Generated with Claude Code

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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-30T20:03:58.933028Z
We couldn’t complete this review. Comment @codex review to try again.
a0d75e2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@thepastaclaw

thepastaclaw commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Final review complete — no blockers (commit a0d75e2) · triage: low

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: low by gpt-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); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 97% left, weekly 79% left; passed over gemini-3.8-flash-high (antigravity quota lookup failed)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort medium); agent phase2-reviewer, gpt-6.1-sol — backport-reviewer (completed, effort medium); agent phase2-reviewer, gpt-6.1-sol — dash-core-commit-history (completed, effort medium); agent phase2-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.

@thepastaclaw thepastaclaw added the pastaclaw:approved thepastaclaw's latest review approved this PR label Oct 30, 2026

@knst knst left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK a0d75e2

@PastaPastaPasta
PastaPastaPasta merged commit 31f2d41 into dashpay:v23.1.x Nov 1, 2026
116 of 128 checks passed
@thepastaclaw thepastaclaw removed the pastaclaw:approved thepastaclaw's latest review approved this PR label Nov 1, 2026
@UdjinM6 UdjinM6 added this to the 23.1.11 milestone Nov 13, 2026
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.

4 participants