Skip to content

fix(rpc): use a consistent tip height in quorum dkgstatus - #7781

Merged
PastaPastaPasta merged 1 commit into
dashpay:developfrom
PastaPastaPasta:fix/use-a-consistent-tip-height-in-quorum-dkgstatus
Oct 4, 2026
Merged

PastaPastaPasta merged 1 commit into
dashpay:developfrom
PastaPastaPasta:fix/use-a-consistent-tip-height-in-quorum-dkgstatus

Conversation

@PastaPastaPasta

Copy link
Copy Markdown
Member

Issue being fixed or feature implemented

quorum dkgstatus can abort dashd if the chain tip is disconnected while the RPC is running.

The RPC reads the tip once under cs_main and drops the lock (quorums.cpp#L371, #L373). For each quorum type it then takes cs_main again and calls GetMineableCommitments(llmq_params, tipHeight + 1) with that earlier height (#L429-L430). GetMineableCommitments → GetNumCommitmentsRequired → IsMiningPhase starts with assert(nHeight <= active_chain.Height() + 1) (blockprocessor.cpp#L889, #L610, #L317). That assert runs on every call, not only inside the mining window. If even one block is disconnected between the two lock scopes, tipHeight + 1 is greater than Height() + 1 and the process aborts.

The chain can shrink while cs_main is released: invalidateblock, a reorg that disconnects before it connects, or ChainLock enforcement, which disconnects the conflicting blocks in EnforceBlock and reconnects later in a separate ActivateBestChain call. Before #7770 the RPC passed tipHeight, so it took a two-block rollback to hit the assert. #7770 changed it to tipHeight + 1, and now a one-block rollback is enough.

A related problem sits in the same function, on the masternode-only path: WITH_LOCK(cs_main, return chainman.ActiveChain()[quorumHeight]) re-reads the active chain (#L390). That returns nullptr if the chain has dropped below quorumHeight, and the result is dereferenced on the next line.

Why this is a real problem

I reproduced the abort on an unmodified c14104b172a2 debug build with a functional-test-style script. It starts one regtest node with 200 blocks. Six RPC threads call quorum dkgstatus in a loop while one thread runs invalidateblock <tip> / reconsiderblock <tip>. No masternode is needed: the GetMineableCommitments call runs on every node.

The node aborts within 0.2 s every time (4 of 4 runs). With this PR, the same script runs for 120 s (816,452 dkgstatus calls against 44,361 rollbacks) and the node stays up.

Reproduction script and output
#!/usr/bin/env python3
import os, sys, threading, time
sys.path.insert(0, os.path.join(os.environ["DASH_WORKTREE"], "test", "functional"))
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import get_rpc_proxy

DURATION = int(os.environ.get("REPRO_SECONDS", "120"))

class DkgStatusRollbackRace(BitcoinTestFramework):
    def set_test_params(self):
        self.num_nodes = 1
        self.setup_clean_chain = True
        self.extra_args = [["-rpcthreads=16", "-rpcworkqueue=64"]]

    def run_test(self):
        node = self.nodes[0]
        self.generate(node, 200, sync_fun=self.no_op)
        stop = threading.Event()
        counts = {"dkgstatus": 0, "rollbacks": 0}
        errors = []

        def dkg_worker():
            rpc = get_rpc_proxy(node.url, 0, timeout=30)
            while not stop.is_set():
                try:
                    rpc.quorum("dkgstatus"); counts["dkgstatus"] += 1
                except Exception as e:
                    errors.append(repr(e)); stop.set()

        def rollback_worker():
            rpc = get_rpc_proxy(node.url, 0, timeout=30)
            while not stop.is_set():
                try:
                    tip = rpc.getbestblockhash()
                    rpc.invalidateblock(tip); rpc.reconsiderblock(tip)
                    counts["rollbacks"] += 1
                except Exception as e:
                    errors.append(repr(e)); stop.set()

        threads = [threading.Thread(target=dkg_worker) for _ in range(6)] + [threading.Thread(target=rollback_worker)]
        start = time.time()
        for t in threads: t.start()
        while not stop.is_set() and time.time() - start < DURATION and node.process.poll() is None:
            time.sleep(0.2)
        stop.set()
        for t in threads: t.join()
        self.log.info("ran %.1fs: %d dkgstatus calls, %d invalidate/reconsider rounds",
                      time.time() - start, counts["dkgstatus"], counts["rollbacks"])
        # (the full script also reports dashd's exit code and stderr, then fails if dashd exited)
        ...

if __name__ == "__main__":
    DkgStatusRollbackRace().main()

Unfixed (c14104b172a2):

$ DASH_WORKTREE=$PWD REPRO_SECONDS=120 python3 repro_dkgstatus_rollback.py --configfile=test/config.ini --portseed=3303
TestFramework (INFO): tip height 200, enabled dkgstatus types: 4
TestFramework (INFO): ran 0.2s: 177 dkgstatus calls, 8 invalidate/reconsider rounds
TestFramework (ERROR): RESULT: dashd EXITED with code -6 after 0.2s
TestFramework (ERROR): dashd stderr: Assertion failure:
TestFramework (ERROR): dashd stderr:   assertion: nHeight <= active_chain.Height() + 1
TestFramework (ERROR): dashd stderr: Assertion failed: (nHeight <= active_chain.Height() + 1), function IsMiningPhase, file blockprocessor.cpp, line 317.
TestFramework (ERROR): first RPC error: RemoteDisconnected('Remote end closed connection without response')

Three more unfixed runs:

ran 0.2s: 299 dkgstatus calls, 16 invalidate/reconsider rounds -> dashd EXITED with code -6 (nHeight <= active_chain.Height() + 1)
ran 0.2s: 45 dkgstatus calls, 2 invalidate/reconsider rounds   -> dashd EXITED with code -6 (nHeight <= active_chain.Height() + 1)
ran 0.2s: 150 dkgstatus calls, 8 invalidate/reconsider rounds  -> dashd EXITED with code -6 (nHeight <= active_chain.Height() + 1)

With this PR:

TestFramework (INFO): tip height 200, enabled dkgstatus types: 4
TestFramework (INFO): ran 120.2s: 816452 dkgstatus calls, 44361 invalidate/reconsider rounds
TestFramework (INFO): RESULT: dashd still running, dkgstatus answered every call
TestFramework (INFO): Tests successful

Why it matters

dkgstatus is what operators and monitoring tools poll on masternodes. If a poll happens to overlap a tip disconnect, the node aborts. A crashed masternode can then collect PoSe penalties. The trigger needs RPC access plus a rollback at the wrong moment, so this is a local reliability bug, not something a remote peer can trigger on demand. Funds and consensus are not affected.

What was done?

Two changes in quorum_dkgstatus in src/rpc/quorums.cpp:

  • The height passed to GetMineableCommitments is now chainman.ActiveChain().Height() + 1, read inside the same LOCK(cs_main) as the call. This keeps the "next block after the tip" meaning from fix: quorum_dkgstatus should return amount of commitments that _next_ block after tip will include #7770 and guarantees nHeight <= Height() + 1 when IsMiningPhase checks it.
  • The quorum base block is now found with pindexTip->GetAncestor(quorumHeight) instead of ActiveChain()[quorumHeight]. Since quorumHeight <= tipHeight, this never returns nullptr. It also matches the tip the rest of the loop already uses for GetEnabledQuorumTypes / IsQuorumRotationEnabled, and it removes one cs_main acquisition.

Why this is the correct minimal fix

The root cause is that the RPC mixes a height read under one cs_main scope with a chain read under another. Both changes make each lookup consistent with the chain state it is checked against, and nothing else changes.

Holding cs_main across the whole RPC would also work, but GetQuorumConnections and connman.ForEachNode run in that loop, and holding the lock across them is unnecessary. Clamping or skipping in the RPC would leave the stale height in place. The asserts in IsMiningPhase / GetNumCommitmentsRequired / GetMineableCommitments are deliberately left alone: they protect block creation and validation, where the height always comes from the chain under the same lock.

Output is unchanged when the chain does not move during the call. If the chain grows during the call, minableCommitments now describes the block after the current tip instead of the one after the earlier sample. That is what the field is documented to mean.

This fixes a regression from #7770, which shipped in v24.0.0-rc.2, so it should also go to the v24.0.x branch before the final release.

How Has This Been Tested?

macOS arm64, debug build (--enable-debug, assertions on).

  • Ran the reproduction script above against unfixed c14104b172a2: dashd aborted on the IsMiningPhase assert within 0.2 s in 4 of 4 runs.
  • Ran the same script with this PR: 120 s, 816,452 calls, 44,361 rollbacks, no abort. A second 30 s run after clang-format: 208,389 calls, 11,386 rollbacks, no abort.
  • test/functional/test_runner.py feature_llmq_simplepose.py feature_llmq_rotation.py feature_llmq_connections.py: all passed, including feature_llmq_simplepose.py --disable-spork23. These tests call quorum dkgstatus on masternodes through the framework's quorum-connection and probe helpers, so they exercise the GetAncestor path and the minableCommitments path.
  • clang-format-diff.py on the change is clean.

No regression test is added. The bug is a race between two RPC threads, and catching it needs a multi-threaded stress loop. Such a test can only show the bug on a lucky interleaving, and it would add run time to the suite for a two-line change. The script above is how the fix was verified.

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • 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

quorum dkgstatus samples the tip once under cs_main, drops the lock, and
later re-takes it to call GetMineableCommitments(tipHeight + 1). If the
tip is disconnected in between (invalidateblock, a reorg, or ChainLock
enforcement), the passed height exceeds ActiveChain().Height() + 1 and the
assert in IsMiningPhase aborts the node.

Read the height from the active chain inside the same cs_main scope as
the GetMineableCommitments call, and resolve the quorum base block from
the sampled tip with GetAncestor() instead of re-reading the active chain,
which could return nullptr after the chain shrank.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@thepastaclaw

thepastaclaw commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

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

@coderabbitai

coderabbitai Bot commented Oct 4, 2026

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

🧰 Additional context used
📚 Code guidelines (2)
AGENTS.md — auto-discovered
doc/developer-notes.md — auto-discovered

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 922534b5-cecb-4267-80a4-cc99027ac7a0
📥 Commits

Reviewing files that changed from the base of the PR and between 8819507 and 9581df5.

📒 Files selected for processing (1)
  • src/rpc/quorums.cpp

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.


Walkthrough

quorum_dkgstatus now retrieves the quorum base block from pindexTip’s ancestors. It also queries mineable commitments at the active chain height plus one while holding cs_main.

Priority: ⬆️ High

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to 9581d

The RPC’s quorum data remains tied to its sampled tip, while the commitment query uses the locked active-chain height. No actionable merge risk is established.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 9581d

The change reduces reorganization-related failure risks without expanding the RPC’s inputs, authority, or output schema. No introduced security concern was identified, although broader lifecycle and access-control coverage remains incomplete.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The changed failure-containment surface is the serving node’s availability and diagnostic output during concurrent chain changes. The inspected edits do not add cross-service authority or a new state-changing sink; their effective remote exposure still depends on existing RPC access controls that were not traced.

Trust Boundaries and Controls

  • observed — The existing RPC registration and node-context acquisition remain in place. Within the changed commitment path, cs_main protects both the height read and the callee’s active-chain lookup, preventing a concurrent disconnect between those operations.

Resilience and Maintainability Implications

  • inferred — The locked height calculation removes the stale-height precondition failure caused by a rollback between lock scopes. Captured-tip ancestry also avoids querying a height removed from the active-chain vector. No new persistent mutation, reservation, rollback operation, or cleanup obligation is visible in these changed expressions.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main fix: using a consistent tip height in quorum dkgstatus.
Description check ✅ Passed The description explains the reported chain-tip race, both code changes, and the testing performed. It is directly related to the changeset.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@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

Verified the combined reviewer evidence against exact head 9581df5; no in-scope defects were found. The commitment height is now read under the same cs_main lock as its consumer, and the quorum-base lookup follows the captured tip's stable ancestor chain instead of indexing a potentially shortened active chain. This was a static review: the supplied CI snapshot shows all completed checks passing, with two test jobs queued and five platform/sanitizer builds still running; the author's stress and functional-test results were not independently executed.

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: 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) — The diff makes two small, localized corrections to chain-tip access in quorum_dkgstatus, with straightforward correctness checks and no changes to consensus or other critical rules.
  • Phase 1 reviewers: glm-5.3-flash — general (completed, effort high); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 100% left, weekly 69% left; passed over gemini-3.8-flash-high (antigravity below 15% reserve: weekly 15% left, 5h 100% left)
  • 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 — 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.

  • Same stale-height TOCTOU pattern exists in quorum listextended explicit-height path — Confirmed in src/rpc/quorums.cpp:148–157: an explicit height is validated against the active-chain height in one cs_main scope and indexed in a later scope. A tip rollback between them can make CChain::operator[] return nullptr, which terminates the process when converted to the gsl::not_null argument of GetEnabledQuorumTypes. This concrete RPC-triggered node-abort path is unchanged from the PR's parent and is outside the stated dkgstatus fix.
    • Follow-up: Track a separate fix that validates the requested height and captures its block index in one cs_main scope.

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

@PastaPastaPasta PastaPastaPasta left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

approved

@PastaPastaPasta
PastaPastaPasta merged commit 8ad2c07 into dashpay:develop Oct 4, 2026
48 of 49 checks passed
@thepastaclaw thepastaclaw removed the pastaclaw:approved thepastaclaw's latest review approved this PR label Oct 4, 2026
@UdjinM6 UdjinM6 added this to the 24 milestone Oct 6, 2026
PastaPastaPasta added a commit that referenced this pull request Oct 7, 2026
9581df5 fix(rpc): use a consistent tip height in quorum dkgstatus (pasta)

Pull request description:

  ## Issue being fixed or feature implemented

  `quorum dkgstatus` can abort `dashd` if the chain tip is disconnected while the RPC is running.

  The RPC reads the tip once under `cs_main` and drops the lock ([quorums.cpp#L371](https://github.com/dashpay/dash/blob/c14104b172a2/src/rpc/quorums.cpp#L371), [#L373](https://github.com/dashpay/dash/blob/c14104b172a2/src/rpc/quorums.cpp#L373)). For each quorum type it then takes `cs_main` again and calls `GetMineableCommitments(llmq_params, tipHeight + 1)` with that earlier height ([#L429-L430](https://github.com/dashpay/dash/blob/c14104b172a2/src/rpc/quorums.cpp#L429-L430)). `GetMineableCommitments` → `GetNumCommitmentsRequired` → `IsMiningPhase` starts with `assert(nHeight <= active_chain.Height() + 1)` ([blockprocessor.cpp#L889](https://github.com/dashpay/dash/blob/c14104b172a2/src/llmq/blockprocessor.cpp#L889), [#L610](https://github.com/dashpay/dash/blob/c14104b172a2/src/llmq/blockprocessor.cpp#L610), [#L317](https://github.com/dashpay/dash/blob/c14104b172a2/src/llmq/blockprocessor.cpp#L317)). That assert runs on every call, not only inside the mining window. If even one block is disconnected between the two lock scopes, `tipHeight + 1` is greater than `Height() + 1` and the process aborts.

  The chain can shrink while `cs_main` is released: `invalidateblock`, a reorg that disconnects before it connects, or ChainLock enforcement, which disconnects the conflicting blocks in `EnforceBlock` and reconnects later in a separate `ActivateBestChain` call. Before #7770 the RPC passed `tipHeight`, so it took a two-block rollback to hit the assert. #7770 changed it to `tipHeight + 1`, and now a one-block rollback is enough.

  A related problem sits in the same function, on the masternode-only path: `WITH_LOCK(cs_main, return chainman.ActiveChain()[quorumHeight])` re-reads the active chain ([#L390](https://github.com/dashpay/dash/blob/c14104b172a2/src/rpc/quorums.cpp#L390)). That returns `nullptr` if the chain has dropped below `quorumHeight`, and the result is dereferenced on the next line.

  ### Why this is a real problem

  I reproduced the abort on an unmodified `c14104b172a2` debug build with a functional-test-style script. It starts one regtest node with 200 blocks. Six RPC threads call `quorum dkgstatus` in a loop while one thread runs `invalidateblock <tip>` / `reconsiderblock <tip>`. No masternode is needed: the `GetMineableCommitments` call runs on every node.

  The node aborts within 0.2 s every time (4 of 4 runs). With this PR, the same script runs for 120 s (816,452 `dkgstatus` calls against 44,361 rollbacks) and the node stays up.

  <details><summary>Reproduction script and output</summary>

  ```python
  #!/usr/bin/env python3
  import os, sys, threading, time
  sys.path.insert(0, os.path.join(os.environ["DASH_WORKTREE"], "test", "functional"))
  from test_framework.test_framework import BitcoinTestFramework
  from test_framework.util import get_rpc_proxy

  DURATION = int(os.environ.get("REPRO_SECONDS", "120"))

  class DkgStatusRollbackRace(BitcoinTestFramework):
      def set_test_params(self):
          self.num_nodes = 1
          self.setup_clean_chain = True
          self.extra_args = [["-rpcthreads=16", "-rpcworkqueue=64"]]

      def run_test(self):
          node = self.nodes[0]
          self.generate(node, 200, sync_fun=self.no_op)
          stop = threading.Event()
          counts = {"dkgstatus": 0, "rollbacks": 0}
          errors = []

          def dkg_worker():
              rpc = get_rpc_proxy(node.url, 0, timeout=30)
              while not stop.is_set():
                  try:
                      rpc.quorum("dkgstatus"); counts["dkgstatus"] += 1
                  except Exception as e:
                      errors.append(repr(e)); stop.set()

          def rollback_worker():
              rpc = get_rpc_proxy(node.url, 0, timeout=30)
              while not stop.is_set():
                  try:
                      tip = rpc.getbestblockhash()
                      rpc.invalidateblock(tip); rpc.reconsiderblock(tip)
                      counts["rollbacks"] += 1
                  except Exception as e:
                      errors.append(repr(e)); stop.set()

          threads = [threading.Thread(target=dkg_worker) for _ in range(6)] + [threading.Thread(target=rollback_worker)]
          start = time.time()
          for t in threads: t.start()
          while not stop.is_set() and time.time() - start < DURATION and node.process.poll() is None:
              time.sleep(0.2)
          stop.set()
          for t in threads: t.join()
          self.log.info("ran %.1fs: %d dkgstatus calls, %d invalidate/reconsider rounds",
                        time.time() - start, counts["dkgstatus"], counts["rollbacks"])
          # (the full script also reports dashd's exit code and stderr, then fails if dashd exited)
          ...

  if __name__ == "__main__":
      DkgStatusRollbackRace().main()
  ```

  Unfixed (`c14104b172a2`):

  ```
  $ DASH_WORKTREE=$PWD REPRO_SECONDS=120 python3 repro_dkgstatus_rollback.py --configfile=test/config.ini --portseed=3303
  TestFramework (INFO): tip height 200, enabled dkgstatus types: 4
  TestFramework (INFO): ran 0.2s: 177 dkgstatus calls, 8 invalidate/reconsider rounds
  TestFramework (ERROR): RESULT: dashd EXITED with code -6 after 0.2s
  TestFramework (ERROR): dashd stderr: Assertion failure:
  TestFramework (ERROR): dashd stderr:   assertion: nHeight <= active_chain.Height() + 1
  TestFramework (ERROR): dashd stderr: Assertion failed: (nHeight <= active_chain.Height() + 1), function IsMiningPhase, file blockprocessor.cpp, line 317.
  TestFramework (ERROR): first RPC error: RemoteDisconnected('Remote end closed connection without response')
  ```

  Three more unfixed runs:

  ```
  ran 0.2s: 299 dkgstatus calls, 16 invalidate/reconsider rounds -> dashd EXITED with code -6 (nHeight <= active_chain.Height() + 1)
  ran 0.2s: 45 dkgstatus calls, 2 invalidate/reconsider rounds   -> dashd EXITED with code -6 (nHeight <= active_chain.Height() + 1)
  ran 0.2s: 150 dkgstatus calls, 8 invalidate/reconsider rounds  -> dashd EXITED with code -6 (nHeight <= active_chain.Height() + 1)
  ```

  With this PR:

  ```
  TestFramework (INFO): tip height 200, enabled dkgstatus types: 4
  TestFramework (INFO): ran 120.2s: 816452 dkgstatus calls, 44361 invalidate/reconsider rounds
  TestFramework (INFO): RESULT: dashd still running, dkgstatus answered every call
  TestFramework (INFO): Tests successful
  ```

  </details>

  ### Why it matters

  `dkgstatus` is what operators and monitoring tools poll on masternodes. If a poll happens to overlap a tip disconnect, the node aborts. A crashed masternode can then collect PoSe penalties. The trigger needs RPC access plus a rollback at the wrong moment, so this is a local reliability bug, not something a remote peer can trigger on demand. Funds and consensus are not affected.

  ## What was done?

  Two changes in `quorum_dkgstatus` in `src/rpc/quorums.cpp`:

  - The height passed to `GetMineableCommitments` is now `chainman.ActiveChain().Height() + 1`, read inside the same `LOCK(cs_main)` as the call. This keeps the "next block after the tip" meaning from #7770 and guarantees `nHeight <= Height() + 1` when `IsMiningPhase` checks it.
  - The quorum base block is now found with `pindexTip->GetAncestor(quorumHeight)` instead of `ActiveChain()[quorumHeight]`. Since `quorumHeight <= tipHeight`, this never returns `nullptr`. It also matches the tip the rest of the loop already uses for `GetEnabledQuorumTypes` / `IsQuorumRotationEnabled`, and it removes one `cs_main` acquisition.

  ### Why this is the correct minimal fix

  The root cause is that the RPC mixes a height read under one `cs_main` scope with a chain read under another. Both changes make each lookup consistent with the chain state it is checked against, and nothing else changes.

  Holding `cs_main` across the whole RPC would also work, but `GetQuorumConnections` and `connman.ForEachNode` run in that loop, and holding the lock across them is unnecessary. Clamping or skipping in the RPC would leave the stale height in place. The asserts in `IsMiningPhase` / `GetNumCommitmentsRequired` / `GetMineableCommitments` are deliberately left alone: they protect block creation and validation, where the height always comes from the chain under the same lock.

  Output is unchanged when the chain does not move during the call. If the chain grows during the call, `minableCommitments` now describes the block after the current tip instead of the one after the earlier sample. That is what the field is documented to mean.

  This fixes a regression from #7770, which shipped in v24.0.0-rc.2, so it should also go to the v24.0.x branch before the final release.

  ## How Has This Been Tested?

  macOS arm64, debug build (`--enable-debug`, assertions on).

  - Ran the reproduction script above against unfixed `c14104b172a2`: dashd aborted on the `IsMiningPhase` assert within 0.2 s in 4 of 4 runs.
  - Ran the same script with this PR: 120 s, 816,452 calls, 44,361 rollbacks, no abort. A second 30 s run after clang-format: 208,389 calls, 11,386 rollbacks, no abort.
  - `test/functional/test_runner.py feature_llmq_simplepose.py feature_llmq_rotation.py feature_llmq_connections.py`: all passed, including `feature_llmq_simplepose.py --disable-spork23`. These tests call `quorum dkgstatus` on masternodes through the framework's quorum-connection and probe helpers, so they exercise the `GetAncestor` path and the `minableCommitments` path.
  - `clang-format-diff.py` on the change is clean.

  No regression test is added. The bug is a race between two RPC threads, and catching it needs a multi-threaded stress loop. Such a test can only show the bug on a lucky interleaving, and it would add run time to the suite for a two-line change. The script above is how the fix was verified.

  ## Breaking Changes

  None.

  ## Checklist:
  - [x] I have performed a self-review of my own code
  - [ ] 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](https://claude.com/claude-code)

Top commit has no ACKs.

Tree-SHA512: f11c5ebd5887ade5e051ec5b95e2c3336f2fa5d891b58d38f1233fe9eba7393cd28184b91d40391c40c0d9b19c20a9d8e1c9208983e0dc6096ebb994262fd9f8
(cherry picked from commit 8ad2c07)
PastaPastaPasta added a commit that referenced this pull request Oct 7, 2026
fbe6526 Merge #7807: feat(consensus): hold EvoNode shares and multiple payouts behind a new evo_shares deployment (pasta)
57fd2d9 Merge #7776: fix: keep a pending ProUpServTx across a registrar update that keeps the operator key (pasta)
ca69801 Merge #7803: fix: return non-zero amount of accounts after sethdseed (pasta)
57a8f07 Merge #7796: backport: bitcoin#26720 (remaining), partial bitcoin#29523: weight-check the knapsack exact-match selection (pasta)
4eb82f6 Merge #7786: fix(net): keep a dedicated onion listener when -bind is given and correct the bind release note (pasta)
70626a0 Merge #7793: backport: partial bitcoin#28868 (wallet: reload wallet if migration exited early, keep mixed watchonly txs) (pasta)
250a3cd Merge #7790: fix: guard cached governance object flags with the object lock (pasta)
700c195 Merge #7787: fix: only sign EHF signals inside the deployment's start/timeout window (pasta)
a3b0f3c Merge #7785: fix: restore the txindex requirement when governance validation is enabled (pasta)
2d1735d Merge #7794: fix(wallet): floor the denomination gap threshold so rebalancing cannot oscillate (pasta)
d9f6592 Merge #7783: fix: stop fish completion from re-running the typed dash-cli command (pasta)
89d44c8 Merge #7795: backport: bitcoin#34272, partial bitcoin#31650 (pass PSBT by const reference in PSBTInputSignedAndVerified) (pasta)
a1d7411 Merge #7779: fix!: report legacy evonode Platform addresses when listdiff changes its address (pasta)
73f6ea2 Merge #7789: fix(qt): report malformed lang/font settings instead of aborting at startup (pasta)
40de493 Merge #7781: fix(rpc): use a consistent tip height in quorum dkgstatus (pasta)
7d1a90d Merge #7791: fix(net): request object votes from nPeersPerHashMax peers (pasta)
51b145c Merge #7778: test: use single-member in functional tests: feature_mnehf, feature_notifications, p2p_instantsend (pasta)

Pull request description:

  ## Issue being fixed or feature implemented

  Backports for v24.0.0-rc.3. `v24.0.x` was cut at the v24.0.0-rc.2 tag (1e239d4), and develop has since moved to 24.1.0 (#7775), so rc.3 is built from this branch instead of being tagged on develop like rc.1 and rc.2.

  ## What was done?

  Cherry-picked (`git cherry-pick -m1 -x`) every develop merge since rc.2 that carries `backport-candidate-24.0.x`, plus #7778, which #7807's test needs. They are in develop merge order:

  - #7778 test: use single-member in functional tests: feature_mnehf, feature_notifications, p2p_instantsend (test-only. Needed because #7807's `feature_evo_shares_activation.py` depends on its `mine_quorum_single_member()` fix and fails without it.)
  - #7791 fix(net): request object votes from nPeersPerHashMax peers
  - #7781 fix(rpc): use a consistent tip height in quorum dkgstatus
  - #7789 fix(qt): report malformed lang/font settings instead of aborting at startup
  - #7779 fix!: report legacy evonode Platform addresses when listdiff changes its address
  - #7795 backport: bitcoin#34272, partial bitcoin#31650 (pass PSBT by const reference in PSBTInputSignedAndVerified)
  - #7783 fix: stop fish completion from re-running the typed dash-cli command
  - #7794 fix(wallet): floor the denomination gap threshold so rebalancing cannot oscillate
  - #7785 fix: restore the txindex requirement when governance validation is enabled
  - #7787 fix: only sign EHF signals inside the deployment's start/timeout window
  - #7790 fix: guard cached governance object flags with the object lock
  - #7793 backport: partial bitcoin#28868 (wallet: reload wallet if migration exited early, keep mixed watchonly txs)
  - #7786 fix(net): keep a dedicated onion listener when -bind is given and correct the bind release note. Includes partial bitcoin#36170 (5f40d56). Upstream's dedicated-onion-bind changes to `feature_torcontrol.py` and `p2p_private_broadcast.py` are not included, because those tests depend on upstream commits (5693833, e74d54e) that Dash does not have.
  - #7796 backport: bitcoin#26720 (remaining), partial bitcoin#29523: weight-check the knapsack exact-match selection
  - #7803 fix: return non-zero amount of accounts after sethdseed
  - #7776 fix: keep a pending ProUpServTx across a registrar update that keeps the operator key
  - #7807 feat(consensus): hold EvoNode shares and multiple payouts behind a new evo_shares deployment

  One pick needed conflict resolution, in a test only, described in its commit message: #7793, `test/functional/wallet_migration.py`. `test_conflict_txs()` comes from bitcoin#28542 (#7762), which is not on this branch, so it is left out. The C++ part of #7793 is identical to develop.

  Merged since rc.2 but intentionally not included: #7775 (24.1 version bump), #7260 and #7804 (new Qt feature and its CI fix), #7584 (refactor), routine upstream backports #7257, #7759, #7762, #7768, #7788, #7801, and test/CI-only changes #7777 and #7797.

  No version change is needed. `configure.ac` is already 24.0.0 with `CLIENT_VERSION_IS_RELEASE` false, so the build takes its version string from the `v24.0.0-rc.3` tag, as it did for rc.2.

  ## How Has This Been Tested?

  Built on macOS arm64 against depends with `--enable-debug --enable-werror` (dashd, dash-qt, tests).

  - `make check`: all unit test suites pass, including `test_dash-qt`.
  - Functional tests, all passing: `feature_evo_shares_activation.py`, `feature_masternode_shares.py`, `feature_mnehf.py`, `feature_governance.py --descriptors`, `feature_governance_objects.py`, `feature_governance_txindex_devnet.py`, `feature_proxy.py`, `feature_notifications.py`, `feature_llmq_connections.py`, `feature_llmq_chainlocks_automatic.py`, `feature_llmq_singlenode.py`, `p2p_instantsend.py`, `rpc_blockchain.py` (v1 and v2 transport), `rpc_netinfo.py`, `rpc_quorum.py`, `rpc_verifychainlock.py`, `wallet_hd.py` (legacy and descriptors), `wallet_migration.py`.
  - `feature_bind_extra.py` (from #7786) only runs on Linux and was skipped locally, so CI covers it.

  Every touched file was diffed against develop. The remaining differences come only from develop PRs that are not part of this backport.

  ## Breaking Changes

  Carried over from the picked PRs:

  - #7807: consensus change behind the new `evo_shares` deployment (bit 14). Mainnet and testnet are unaffected until it activates. Devnets with `v24` already active and an EvoNode carrying several owner payouts need to check or reset. New RPC `protx shared_register_prepare_evo`.
  - #7785: outside regtest, a node with `-txindex=0` and without `-disablegovernance` refuses to start again, as before v23.1.0.
  - #7786: carries a partial bitcoin#36170. A node started with `-bind` but no specific `-bind=<addr:port>=onion` now refuses to start while `-listenonion` is enabled. That is the default when listening, even without Tor configured. A wildcard onion bind is also refused. Such nodes need `-bind=127.0.0.1:<port>=onion` or `-listenonion=0`. Nodes without `-bind`, including those using only `-whitebind`, keep the default `127.0.0.1:9996` (`19996` testnet) onion target. See `doc/release-notes-7300.md`.
  - #7779: `protx listdiff` now includes `platform_p2p` and `platform_https` for a legacy-address evonode whose core P2P address changes.

  ## Checklist:
  - [x] I have performed a self-review of my own code
  - [ ] I have made corresponding changes to the documentation
  - [ ] I have assigned this pull request to a milestone

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

Top commit has no ACKs.

Tree-SHA512: 8cb01bdb0234f31b5dd2c105b69673de148922991a7523627395c0e0ccfa22b94be5ffbecc842398d443bc90fd9baf2eee6a9cf6fcdbbd1626eb00b93726a55a
PastaPastaPasta added a commit that referenced this pull request Nov 6, 2026
d6c066f chore: add v23.1.10 to the flatpak release history (pasta)
202632c chore: release v24.0.0 (pasta)
2bf133c docs: cite #8042 for the index fixes in the v24.0.0 release notes (pasta)
8aa11f6 docs: add the v24.0.0-rc.7 picks and index fixes to the v24.0.0 release notes (pasta)
ad4e5d6 docs: drop the index caveat from the -reindex-chainstate man page entry (pasta)
19a90bb test: blocks orphaned while the address index is disabled are removed from it (pasta)
d2f2a1f fix(index): don't adopt an empty or rebuilt async index as migrated legacy data (pasta)
e3bafdb fix(index): reject an uncommitted tip the block index lost (pasta)
9198962 fix(index): check the blocks governance resumes from at startup (pasta)
baff347 fix(index): resume from the tip a skipped commit leaves behind (pasta)
2dbf5ca fix(index): write a rewound block's erasures in one batch with its locator (pasta)
252acbe fix(index): move the committed locator below the entries a rewind erases (Konstantin Akimov)
e9f9c8a Merge bitcoin#36150: indexes: set prune lock to genesis before first block (Konstantin Akimov)
2edeb98 partial Merge bitcoin#34897: indexes: Don't commit ahead of the flushed chainstate (Konstantin Akimov)
3eba84c Merge bitcoin#32875: index: handle case where pindex_prev equals chain tip in NextSyncBlock() (Konstantin Akimov)
399125c Merge bitcoin#32882: index: remove unnecessary locator cleaning in BaseIndex::Init() (Konstantin Akimov)
bb724c6 Merge bitcoin#33212: index: Don't commit state in BaseIndex::Rewind (Konstantin Akimov)
d5ff431 Merge bitcoin#32878: index: fix wrong assert of current_tip == m_best_block_index (Konstantin Akimov)
31c7d8f partial Merge bitcoin#32580: wallet, test: best block locator matches scan state follow-ups (Konstantin Akimov)
94f5c58 partial Merge bitcoin#30221: wallet: Ensure best block matches wallet scan state (Konstantin Akimov)
8e0b1e8 partial Merge bitcoin#32069: test: fix intermittent failure in wallet_reorgsrestore.py (Konstantin Akimov)
4d17947 Merge bitcoin#25193: indexes: Read the locator's top block during init, allow interaction with reindex-chainstate (Konstantin Akimov)
0127df8 Merge #8045: test: scale the mempool-loaded wait by timeout_factor so TSAN reindex restarts stop timing out (pasta)
62d0cef Merge #8036: fix(qt): let a shared masternode participant follow a revised invitation that keeps their share (merge-script)
775d31c Merge #8018: fix(consensus): require IPv4 masternode primaries until IPv4 is optional, pin mainnet ports (merge-script)
e1b826e Merge #8026: fix(qt): keep shared masternode contribution fields locked while coins are reserved (merge-script)
9fa3df3 Merge #8020: fix(rpc): make protx shared_sign sign only dissolutions that return every principal (merge-script)
246a465 Merge #8024: fix(qt): keep the shared masternode dissolve dialog consistent with what it will send (merge-script)
590ad0a Merge #8021: fix(qt): don't load a newer shared masternode session copy that changes your own share (merge-script)
974aaa3 Merge #8034: fix(qt): check a shared masternode's service and refund addresses before coins are reserved (merge-script)
0026e3e Merge #8027: fix(qt): fund a shared masternode's service update from this wallet by default (merge-script)
6a5d2dc Merge #8035: fix(qt): don't strand coins reserved for a shared masternode session (merge-script)
df6083a Merge #8032: fix(qt): don't offer a new operator key when reopening a shared masternode session (merge-script)
2b5bf30 Merge #8029: fix: let dashd -version, -help and first start work without an existing data directory (merge-script)
e33d9b1 Merge #8037: docs: list the config file path each Linux init system uses (merge-script)
6030ea0 docs: add the #8014 migratewallet fixes to the v24.0.0 release notes (pasta)
1b1ea95 Merge #8014: backport: bitcoin#28609, bitcoin#34215, bitcoin#34226, bitcoin#34370, partials bitcoin#31423, bitcoin#34156 (migratewallet fixes from 28.x) (merge-script)
608ff63 Merge bitcoin#28542: wallet: Check for uninitialized last processed and conflicting heights in MarkConflicted (DCG-Claude)
3af6f63 Merge bitcoin#28038: wallet: address book migration bug fixes (DCG-Claude)
2fe41fb docs: add ecosystem notes on Asset Unlock txids, coinbase payees and RPC errors (pasta)
0e3f653 docs: correct operator guidance in the v24.0.0 release notes for rc.7 (pasta)
11c8140 Merge #8019: fix(qt): stop reporting refused shared masternode broadcasts as sent (merge-script)
cdb250c doc: note operator-relevant v23.1.x patch-release changes for v24.0.0 (pasta)
fcd332b doc: state the provider-transaction InstantSend change on its own (pasta)
e6f3ad4 fix(bls): stop weighted contribution batch verification on an invalid partial aggregate (pasta)
e04acba fix(llmq): weight batched DKG contribution verification (UdjinM6)
ed96227 fix(bls): weight batch-verified signatures so complementary errors cannot cancel (UdjinM6)
b5c7985 fix(governance): don't vote on triggers while not synced (pasta)
a79f432 fix(governance): don't vote NO-FUNDING on triggers before their maturity window (pasta)
8615244 fix(llmq): accept equal DKG secret key shares when aggregating a member's share (pasta)
1c356f4 test: cover DKG members dealing identical contributions (UdjinM6)
f23f748 fix(llmq): drop DKG members whose verification vectors share coefficients (UdjinM6)
914c052 docs: add #8003 to the v24.0.0 release notes and man pages (pasta)
e81c511 Merge #8003: fix(net): don't refuse to start over the automatic onion service unless -listenonion=1 (merge-script)
41b4578 ci: run cppcheck as test/lint/cppcheck-dash.py, as develop does since #7966 (pasta)
c97f3b3 docs: regenerate man pages for v24.0.0-rc.6 (pasta)
784312c docs: add the v24.0.0-rc.6 changes to the v24.0.0 release notes (pasta)
f15a53a Merge #7991: fix(qt): shared masternode wizard fixes for taken shares, unconfirmed funding and reply handling (merge-script)
1c46224 Merge #7995: fix(wallet): don't let a waiting CoinJoin promotion/demotion queue block standard mixing (merge-script)
546db2f Merge #7996: fix(wallet): fill a CoinJoin promotion with sibling coins when needed (merge-script)
349859f Merge #7957: fix(qt): validate shared-masternode shares with the consensus rules (merge-script)
9091f0b Merge #8005: backport: bitcoin#27114, bitcoin#33395 (merge-script)
e915ab5 Merge #7990: fix(wallet): pay for 3 byte input and output counts so 253+ input sends work (merge-script)
4f4d188 Merge #7984: chore: Translations 2026-10 (pasta)
129a1fc Merge #7980: chore: update seeds, checkpoints, minimum chain work, assumevalid and tx stats for v24 (pasta)
5800e5d docs: state that SPORK_3/SPORK_9 were already hardened on mainnet (pasta)
ddc82a8 docs: separate extended addresses from shared masternodes in v24 notes (pasta)
8660e54 docs: complete the v24.0.0 release notes against the full v24 changeset (pasta)
11ea306 Merge #7947: fix: stop quorum key warming from stalling DKG on 2-core masternodes (pasta)
25d7c85 Merge #7826: fix: skip repeated authenticated Platform bans (pasta)
18073dd Merge #7850: perf: let CHECKDATASIG use the signature cache (pasta)
3759397 Merge #7833: fix: gate signing intake before quorum retrieval (pasta)
db98ee2 fix: keep flat-file positions 64-bit clean at the remaining raw seek/tell sites (Konstantin Akimov)
54c9738 Merge bitcoin#36667: net: enforce timeout interval for paused send peers (Konstantin Akimov)
f1adb2c Merge bitcoin#36665: sock: align exception monitoring between poll() and select() backends (Konstantin Akimov)
8becf6a Merge bitcoin#36669: refactor: store positions as a 64 bits integer in flatfiles (Konstantin Akimov)
4c0cbd6 fix(llmq): judge every sig-share sender by its own verified shares (pasta)
649259f fix(governance): cap the orphan parent objects re-requested per tick (pasta)
418f5ee fix(llmq): verify DKG contributions individually when a batch vvec check fails (pasta)
abf2eb0 fix(llmq): reject invalid decrypted DKG shares before aggregation (pasta)
39bda8f fix(consensus): reject negative transaction nVersion after DIP3 (pasta)
1ba2609 Merge #7951: fix(net): stop peers lingering after disconnect under edge-triggered epoll (pasta)
696d45f Merge #7861: feat: keep at least 4-days worth blocks after pruning (merge-script)
9cd1c72 Merge #7869: fix: let startup block replay handle quorum commitments and asset unlocks (pasta)
73e7254 Merge #7682: build: finish relic_conf.h regeneration before compiling BLS consumers (pasta)
7312925 ci: bake the macOS SDK into the CI runner image (pasta)
d885ecd Merge #7916: backport: bitcoin#27800, bitcoin#28125, bitcoin#28232, bitcoin#27695 (merge-script)
f55ad1d Merge bitcoin#28139: test: create wallet specific for test_locked_wallet case (DCG-Claude)
80f6cbe chore: add the v23.1.9 release entry to flatpak metainfo (pasta)
5ba801f chore: use translation source strings generated from v24.0.x (pasta)
a3b9e30 Merge #7974: chore: update man pages, translation strings, SECURITY.md and flatpak for v24.0.0 (pasta)
b5d26bd feat(consensus): schedule V24 and evo_shares on mainnet for November 9, 2026 (pasta)
fe78211 docs: state the earliest v24 activation height and the v23.1.9 fixes (pasta)
3bbe3e2 docs: address review of v24.0.0 release notes (pasta)
28c39fc docs: add v24.0.0 release notes and remove individual release notes files (pasta)
e8cbfaf docs: archive v23.1.8 and v23.1.9 release notes (pasta)
6c02b2b ci: let DEPENDS_ARCH override the machine arch for multiprocess and tsan (pasta)
ce5dbf3 Merge #7888: fix(consensus): canonical ExtNetInfo encoding and strict netInfo decoding (pasta)
54cba5c Merge #7537: fix: data races and check-then-act races in the CoinJoin server (pasta)
08d8bca Merge #7909: feat(mining): build the masternode list incrementally during block assembly (pasta)
5633761 Merge #7895: test: cover retroactive provider tx refusal, fix wording (pasta)
cbb9500 Merge #7846: fix: treat pending owner keys and Platform node IDs as one conflict namespace (pasta)
8efdf5e Merge #7857: fix: mine a pending ProUpServTx before a key change of its masternode (pasta)
e56e6ae Merge #7842: fix(wallet): reject mnemonic passphrases that seed derivation truncates (pasta)
79480ff test: follow-up for #7821: check if wallet is locked after failed upgrade instead creating brand-new scenario (Konstantin Akimov)
a56ed47 fix(net): announce sporks to new peers instead of requesting them during mnsync (pasta)
cdaea5f Merge #7894: fix: due to logical conflicts feature_pruning.py had been broken while (pasta)
98d92f6 Merge #7817: backport: partial bitcoin#34156 restore cleanup ownership (pasta)
35e6d18 Merge #7858: fix: do not InstantSend-lock provider transactions (pasta)
904d73d Merge #7881: fix: refuse to sign shared registrar updates that move the funder's coins (pasta)
95982f5 Merge #7782: fix(wallet): persist pending-observation coin locks once the record becomes readable (pasta)
cdf65d0 Merge #7836: backport: partial bitcoin#25812, bitcoin#29855 (pasta)
cc5716f Merge #7824: fix: retain initialized DKG sessions during inventory reads (pasta)
588e458 Merge #7827: backport: partial bitcoin#35984 (pasta)
795c6f1 Merge #7839: fix: release InstantSend tracking after mempool eviction (pasta)
dc1a6b2 Merge #7875: docs(rpc): clarify getchainlockbyheight availability (pasta)
e4798ff Merge #7876: fix(consensus): capture operator key scheme changes with unchanged bytes in state diffs (pasta)
fe68ecb Merge #7871: backport!: Merge bitcoin#27217: wallet: Replace use of purpose strings with an enum (pasta)
8348d22 Merge #7867: fix: refuse masternode list RPCs for blocks outside the active chain (pasta)
861a579 Merge #7866: fix: stop `masternode payments` at the genesis block (pasta)
efcef71 Merge #7521: fix: update masternode rate limit on failed governance trigger path (pasta)
0623182 Merge #7831: fix: bound governance object signatures and reset the governance cache (pasta)
b230657 Merge #7841: fix: authenticate cached InstantSend proof bytes (pasta)
a1f37ea Merge #7820: fix: hold chainstate lock during CoinJoin input validation (pasta)
50a5617 Merge #7829: fix: preserve wallet permissions when changing passphrases (pasta)
2ff0103 Merge #7818: fix: return REST errors for unavailable deployment data (pasta)
cb39369 Merge #7834: fix: validate Electrum import input boundaries (pasta)
e7e3daa Merge #7821: fix: relock encrypted wallets after HD upgrade failures (pasta)
2fea45f Merge #7792: fix: treat missing snapshots during evodb repair as repair errors (pasta)
3c5c039 Merge #7838: fix(wallet): authenticate unlock deadline extensions (pasta)
0bf80f8 Merge #7810: fix(rpc): handle unavailable masternode payment inputs (pasta)
bcefee4 Merge #7822: fix: reject malformed detached quorum share batches (pasta)
86a7737 Merge #7828: fix: omit recovery words from invalid mnemonic errors (pasta)
886d5c4 Merge #7816: fix: check credit pool amount accumulation (pasta)
00fc3b9 Merge #7851: fix(rpc): correct masternode status help for top-level service field (pasta)
0e75c22 Merge #7814: fix(qt): restore HTML escaping of send confirmation recipients (pasta)
fbe6526 Merge #7807: feat(consensus): hold EvoNode shares and multiple payouts behind a new evo_shares deployment (pasta)
57fd2d9 Merge #7776: fix: keep a pending ProUpServTx across a registrar update that keeps the operator key (pasta)
ca69801 Merge #7803: fix: return non-zero amount of accounts after sethdseed (pasta)
57a8f07 Merge #7796: backport: bitcoin#26720 (remaining), partial bitcoin#29523: weight-check the knapsack exact-match selection (pasta)
4eb82f6 Merge #7786: fix(net): keep a dedicated onion listener when -bind is given and correct the bind release note (pasta)
70626a0 Merge #7793: backport: partial bitcoin#28868 (wallet: reload wallet if migration exited early, keep mixed watchonly txs) (pasta)
250a3cd Merge #7790: fix: guard cached governance object flags with the object lock (pasta)
700c195 Merge #7787: fix: only sign EHF signals inside the deployment's start/timeout window (pasta)
a3b0f3c Merge #7785: fix: restore the txindex requirement when governance validation is enabled (pasta)
2d1735d Merge #7794: fix(wallet): floor the denomination gap threshold so rebalancing cannot oscillate (pasta)
d9f6592 Merge #7783: fix: stop fish completion from re-running the typed dash-cli command (pasta)
89d44c8 Merge #7795: backport: bitcoin#34272, partial bitcoin#31650 (pass PSBT by const reference in PSBTInputSignedAndVerified) (pasta)
a1d7411 Merge #7779: fix!: report legacy evonode Platform addresses when listdiff changes its address (pasta)
73f6ea2 Merge #7789: fix(qt): report malformed lang/font settings instead of aborting at startup (pasta)
40de493 Merge #7781: fix(rpc): use a consistent tip height in quorum dkgstatus (pasta)
7d1a90d Merge #7791: fix(net): request object votes from nPeersPerHashMax peers (pasta)
51b145c Merge #7778: test: use single-member in functional tests: feature_mnehf, feature_notifications, p2p_instantsend (pasta)

Pull request description:

  ## Issue being fixed or feature implemented
  Merges the v24.0.0 release back into develop, as the release process asks once `master` is fast-forwarded. `master`, `v24.0.x` and the signed `v24.0.0` tag all point to the same commit (938fba5).

  ## What was done?
  One merge commit of `master` into develop.

  `v24.0.x` was cut from develop, so all of its code is already here. Every commit on it that develop lacks by patch is one of these:
  - a `cherry-pick -x` of a develop commit;
  - covered by a develop PR: the index fixes by #8042, the mainnet V24 schedule by #7973, the cppcheck CI move by #7966;
  - release bookkeeping.

  Git reports conflicts in many files, because `v24.0.x` carries adapted copies of develop's changes. All of them resolve to develop's side, which keeps develop's code, translations and version (`configure.ac` stays at 24.1.0, `CLIENT_VERSION_IS_RELEASE` false).

  Taken from v24.0.0:
  - `doc/release-notes.md`: the v24.0.0 release notes. The v23.1.10 notes move to `doc/release-notes/dash/`.
  - The man pages regenerated for v24.0.0, replacing develop's older v24.0.0 pages. A few entries (`-prune`, `-par`, `-parbls`, `-maxconnections`) still trail develop's help text, as they did before, until the next regeneration.
  - `feature_addressindex.py`: the v24.0.x test that blocks orphaned while the address index is disabled are removed from it once it is re-enabled.

  Release notes:
  - Individual `doc/release-notes-*.md` files whose content is in the v24.0.0 notes are removed. This includes `release-notes-8018.md`, `release-notes-8029.md` and `release-notes-27114.md`, whose changes shipped in v24.0.0 without the files.
  - `release-notes-28113.md` and `release-notes-28414.md` also covered `descriptorprocesspsbt`, which only develop has. They are trimmed to that RPC instead of removed.
  - Notes for changes v24.0.0 doesn't include stay: #7812, #7847, #7860, #7862, bitcoin#25943, bitcoin#26485 and bitcoin#27501.

  ## How Has This Been Tested?
  macOS arm64 against depends, `--enable-debug --enable-werror --disable-hardening --without-gui`. `dashd`, `dash-cli` and `test_dash` build cleanly.

  - `src/` is byte-identical to develop's. The only non-doc change is the new `feature_addressindex.py` case.
  - Functional tests, all passing: `feature_addressindex.py` (with the new case) and `feature_spentindex.py`.
  - Unit suites, all passing: `txindex_tests`, `blockfilter_index_tests`, `coinstatsindex_tests`, `index_migration_tests`, `baseindex_tests`.
  - `lint-python.py`, `lint-whitespace.py`, `lint-includes.py` and `lint-circular-dependencies.py` pass.
  - An independent review checked every non-merge commit in `develop..master` against develop (by patch, by cherry-pick source, and line by line for the rest), re-merged each `v24.0.x` merge commit to look for content added in a merge, and checked each release-note file decision.

  I did not run the full functional suite locally; CI covers it.

  ## Breaking Changes
  None. Develop's code is unchanged; the only non-doc change is the new functional test case.

  ## Checklist:
  - [x] I have performed a self-review of my own code
  - [x] I have added or updated relevant unit/integration/functional/e2e tests
  - [x] I have made corresponding changes to the documentation
  - [x] I have assigned this pull request to a milestone _(if you have permission to set one)_

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

Top commit has no ACKs.

Tree-SHA512: 3c2d1b7d2885f983f1457a18920f42907009c8ca77522a6116739d387b011d8d5583da6a4b6a1227bcaa21fa07a7ef635aae58fb8b19e4f31a95582ee1ce2318
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.

3 participants