Skip to content

fix(qt): keep PoSe score visible when hiding banned masternodes - #7298

Merged
PastaPastaPasta merged 1 commit into
dashpay:developfrom
thepastaclaw:fix/masternode-hide-banned-keep-pose
May 28, 2026
Merged

fix(qt): keep PoSe score visible when hiding banned masternodes#7298
PastaPastaPasta merged 1 commit into
dashpay:developfrom
thepastaclaw:fix/masternode-hide-banned-keep-pose

Conversation

@thepastaclaw

Copy link
Copy Markdown

PR description

Summary

  • Keep the Masternodes tab PoSe Score column visible when "Hide banned" is
    checked.
  • Continue filtering banned masternodes via the existing proxy filter.

Closes #7286.

Validation

  • git diff --check
  • Pre-PR review gate: ship
  • Not run: full build / GUI smoke test; no build directory was available in
    this worktree.

@thepastaclaw

Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Apr 29, 2026

Copy link
Copy Markdown
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@github-actions

github-actions Bot commented Apr 29, 2026

Copy link
Copy Markdown

✅ No Merge Conflicts Detected

This PR currently has no conflicts with other open PRs.

@coderabbitai

coderabbitai Bot commented Apr 29, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 95c1b233-8322-4945-8fc6-b30ee10d4795

📥 Commits

Reviewing files that changed from the base of the PR and between 1d9e0044d383614c2995bbf4bca540e959128e0a and 536f388.

📒 Files selected for processing (1)
  • src/qt/masternodelist.cpp
💤 Files with no reviewable changes (1)
  • src/qt/masternodelist.cpp

Walkthrough

The "Hide banned" checkbox handler in the masternode list was modified to remove the logic that hid the POSE table column. The handler now focuses solely on filtering banned rows through the proxy model by calling setHideBanned(...), invalidating the filter, recalculating row counts, and persisting the user preference.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: keeping the PoSe Score column visible while hiding banned masternodes, which matches the core objective of the changeset.
Description check ✅ Passed The description is directly related to the changeset, explaining the intent to keep the PoSe Score column visible when hiding banned masternodes and referencing the closed issue.
Linked Issues check ✅ Passed The code changes directly address the linked issue #7286 by modifying the checkbox handler to filter banned masternodes without hiding the PoSe Score column.
Out of Scope Changes check ✅ Passed All changes in the pull request are scoped to the specific objective of keeping the PoSe Score column visible while filtering banned masternodes; no extraneous modifications are present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 and usage tips.

@thepastaclaw

thepastaclaw commented Apr 29, 2026

Copy link
Copy Markdown
Author

✅ Review complete (commit 1d9e0044)

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Code Review

Minimal one-line fix that correctly decouples the POSE column visibility from the 'Hide banned' filter. The previous behavior was asymmetric (toggling on hid the column but toggling off never restored it). The proxy filter still excludes banned rows. Both reviewers converged on a single test-coverage suggestion; no blocking issues.

Reviewed commit: 1d9e0044

💬 1 nitpick(s)

1 additional finding

💬 nitpick: No Qt test covers the Hide Banned / PoSe column behavior

src/qt/masternodelist.cpp (lines 291-300)

The fix lives entirely in MasternodeList::on_checkBoxHideBanned_stateChanged, but no test under src/qt/test/ exercises MasternodeList. The Qt test harness already exists in src/qt/test/test_main.cpp, so a focused test that toggles checkBoxHideBanned and asserts both the filtered row count and that tableViewMasternodes->isColumnHidden(MasternodeModel::POSE) remains false would prevent the same regression from reappearing. Not blocking — the fix is small and correct — but the original bug slipped through precisely because there was no automated coverage of this surface.

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Code Review

Single-line Qt fix that correctly stops the 'Hide banned' toggle from also hiding the PoSe Score column. Both reviewers converge on the same nitpick — no Qt test coverage for this widget interaction. No blocking issues.

Reviewed commit: 1d9e0044

Fresh dispatcher run for this queue item. A same-SHA review already existed, so this records the fresh verification without duplicating inline threads.

Code Review

Reviewed commit: 1d9e0044

💬 1 nitpick(s)

@PastaPastaPasta
PastaPastaPasta marked this pull request as ready for review May 19, 2026 14:41
@PastaPastaPasta
PastaPastaPasta requested a review from knst May 19, 2026 14:41

@PastaPastaPasta PastaPastaPasta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@PastaPastaPasta
PastaPastaPasta requested a review from UdjinM6 May 19, 2026 14:42

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

utACK 1d9e0044d383614c2995bbf4bca540e959128e0a

@thepastaclaw
thepastaclaw force-pushed the fix/masternode-hide-banned-keep-pose branch from 1d9e004 to 536f388 Compare May 20, 2026 15:36

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Code Review

PR #7298 is a minimal one-line Qt fix to MasternodeList::on_checkBoxHideBanned_stateChanged that decouples the PoSe Score column visibility from the 'Hide banned' filter. Banned-row filtering still happens via the proxy model (setHideBanned + forceInvalidateFilter), while the PoSe column remains visible — which is desirable since non-zero PoSe scores warn of pre-ban state. The latest delta from 1d9e0044 to 536f388 contains only unrelated develop-branch merges; src/qt/masternodelist.cpp is unchanged between the prior review and current head, so the sole carried-forward nitpick (no Qt test covering this interaction) remains valid. No blocking issues, no new latest-delta findings.

💬 1 nitpick(s)

1 additional finding(s) omitted (not in diff).

@PastaPastaPasta
PastaPastaPasta merged commit 71453a8 into dashpay:develop May 28, 2026
44 checks passed
@UdjinM6 UdjinM6 added this to the 24 milestone May 29, 2026
thepastaclaw pushed a commit to thepastaclaw/dash that referenced this pull request Jul 22, 2026
…ed masternodes

536f388 fix(qt): keep PoSe score visible when hiding banned masternodes (PastaClaw)

Pull request description:

  # PR description

  ## Summary

  - Keep the Masternodes tab PoSe Score column visible when "Hide banned" is
    checked.
  - Continue filtering banned masternodes via the existing proxy filter.

  Closes dashpay#7286.

  ## Validation

  - `git diff --check`
  - Pre-PR review gate: ship
  - Not run: full build / GUI smoke test; no build directory was available in
    this worktree.

Top commit has no ACKs.

Tree-SHA512: ca69dd31322d78ced7d48621ea4dbef8ec65305411abcd245a9b8c7b3059870dfc174caec2ec6d9a05f7940263379e4d5991ad5d1eeb69f5b4894d5aa4751bde
thepastaclaw pushed a commit to thepastaclaw/dash that referenced this pull request Jul 22, 2026
…ed masternodes

536f388 fix(qt): keep PoSe score visible when hiding banned masternodes (PastaClaw)

Pull request description:

  # PR description

  ## Summary

  - Keep the Masternodes tab PoSe Score column visible when "Hide banned" is
    checked.
  - Continue filtering banned masternodes via the existing proxy filter.

  Closes dashpay#7286.

  ## Validation

  - `git diff --check`
  - Pre-PR review gate: ship
  - Not run: full build / GUI smoke test; no build directory was available in
    this worktree.

Top commit has no ACKs.

Tree-SHA512: ca69dd31322d78ced7d48621ea4dbef8ec65305411abcd245a9b8c7b3059870dfc174caec2ec6d9a05f7940263379e4d5991ad5d1eeb69f5b4894d5aa4751bde
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Jul 29, 2026
…ed masternodes

536f388 fix(qt): keep PoSe score visible when hiding banned masternodes (PastaClaw)

Pull request description:

  # PR description

  ## Summary

  - Keep the Masternodes tab PoSe Score column visible when "Hide banned" is
    checked.
  - Continue filtering banned masternodes via the existing proxy filter.

  Closes dashpay#7286.

  ## Validation

  - `git diff --check`
  - Pre-PR review gate: ship
  - Not run: full build / GUI smoke test; no build directory was available in
    this worktree.

Top commit has no ACKs.

Tree-SHA512: ca69dd31322d78ced7d48621ea4dbef8ec65305411abcd245a9b8c7b3059870dfc174caec2ec6d9a05f7940263379e4d5991ad5d1eeb69f5b4894d5aa4751bde
(cherry picked from commit 71453a8)
PastaPastaPasta added a commit that referenced this pull request Jul 30, 2026
24920a0 chore: prepare v23.1.8 release (pasta)
2194248 Merge #7348: fix: penalize oversized notfound messages (pasta)
f5c72c3 Merge #7347: fix: punish invalid dstx messages (pasta)
550caf7 Merge #7465: fix(qt): handle pixel-sized fonts when scaling widgets (pasta)
e203710 Merge #7419: fix(net): bound CoinJoin message vector intake (pasta)
5f5b960 Merge #7418: fix(net): bound signing message vector intake (Pasta)
7cc2cca Merge #7450: test: make governance vote fixtures wire-valid (Pasta)
f011c80 Merge #7440: fix(net): bound governance vote signature deserialization (Pasta)
4b4d96a Merge #7442: fix(net): authorize governance inv responses via the net-layer per-peer request tracker (Pasta)
f855b13 Merge #7444: fix(net): bound bloom message vectors before allocation (Pasta)
5b5c6fb Merge #7415: fix: bound pending sig share queue (Pasta)
9bbe808 Merge #7416: fix(net): bound quorum data response vectors (Pasta)
da42f50 Merge #7424: fix: bound ChainLock seen cache (Pasta)
5b310df Merge #7438: fix: bound SPORK signature deserialization (Pasta)
e118d0c Merge #7259: fix: dangling point to cj client (Pasta)
9921621 Merge #7439: refactor: add bounded vector deserialization (Pasta)
89bdf7c Merge #7414: fix(net): throttle per-object governance vote sync requests (Pasta)
44c396d Merge #7402: fix: bound pending recovered sig queue to prevent remote OOM (Pasta)
05cfe27 Merge #7351: fix: limit signing share sessions per peer (pasta)
3ef3a5b Merge #7408: fix: bound DKG contribution blob intake (pasta)
0ea6532 Merge #7387: test: migrate governance inv cache coverage to unit tests (Pasta)
8ffdf7f Merge #7398: backport: compact block relay hardening (bitcoin#26898, bitcoin#27626, bitcoin#27743, bitcoin#26969, bitcoin#29412, bitcoin#32646, bitcoin#33296) (Pasta)
2915142 backport: bitcoin#27608 - p2p: Avoid prematurely clearing download state for other peers (PastaClaw)
90b5473 Merge #7396: fix: run of circular-dependencies with python3.15 (Pasta)
b003cdc Merge #7395: ci: update GitHub Actions pins for Node 24 (pasta)
97c3dd1 Merge #7394: fix: stabilize par help text in manpages (pasta)
8f8616b Merge #7372: backport: bitcoin#32693: depends: fix cmake compatibility error for freetype (pasta)
48f72be Merge #7360: fix: empty platformP2PPort deprecated field in protx listdiff results (pasta)
a8cccff Merge #7298: fix(qt): keep PoSe score visible when hiding banned masternodes (pasta)

Pull request description:

  Release PR for Dash Core v23.1.8, a patch release on top of v23.1.7.

  Fast-forwards from `v23.1.x` (currently at `chore: prepare v23.1.7 release`), 29 commits, no merge commits, no conflicts.

  ## Contents

  Backports of PRs already reviewed and merged on `develop`:

  `#7259` `#7347` `#7348` `#7351` `#7298` `#7360` `#7372` `#7387` `#7394` `#7395` `#7396` `#7398` `#7402` `#7408` `#7414` `#7415` `#7416` `#7418` `#7419` `#7424` `#7438` `#7439` `#7440` `#7442` `#7444` `#7450` `#7465`

  Plus `backport: bitcoin#27608`, a single commit taken from Dash #7237 because #7398's compact-block hardening depends on it. The rest of that v0.26 batch is intentionally not included on v23.1.x. The commit is byte-identical to its reviewed counterpart inside #7237.

  And release preparation: version bump, regenerated man pages, release notes, archived 23.1.7 notes.

  ## Note for reviewers: this branch was rebuilt

  An earlier revision of this PR was discarded and the branch rebuilt from scratch. Review comments on the previous revision point at commits that no longer exist, though the feedback itself was carried over (see below).

  The reason: several commits titled `Merge #NNNN` in the earlier revision contained substantial code that exists nowhere upstream — apparently written from a description of each PR rather than ported from its diff. For example, `feature_llmq_simplepose.py` is byte-identical between v23.1.7 and `develop`, yet the earlier `Merge #7408` rewrote 66 lines of it; `test/functional/p2p_governance_invs.py` does not exist on `develop` at all, yet had grown from 62 to 148 lines.

  That mislabeling matters because a commit titled `Merge #NNNN` invites less scrutiny, not more. It also had consequences: the earlier revision was **missing #7440 entirely**, and contained eleven consecutive commits that did not compile (code written against newer upstream APIs this branch does not have — `Misbehaving(Peer&)`, and `PeerIsBanned` used five commits before it was declared).

  Every commit on this branch has now been diffed against its upstream merge commit. Where a backport differs, it is because v23.1.x predates an upstream refactor and the change had to be applied to the pre-refactor file — for example #7418 and #7438 patch `signing_shares.cpp` / `spork.cpp` where upstream patches `net_signing.cpp` / `net_processing.cpp`.

  ## Dropped from this branch

  - **#7350** (`net: don't lock cs_main while reading blocks`) — dropped on review feedback. It is a 110-line lock-structure refactor of `ProcessGetBlockData` with no measured benefit, and it would add avoidable churn to the eventual master→develop merge-back. Nothing on this branch depends on it: #7398's compact-block work precedes it, and the remaining 14 commits replay with zero conflicts once it is removed. Thanks @knst.

  ## Added after the initial review pass

  - **#7351** (`fix: limit signing share sessions per peer`) — cherry-picked as a single
    commit and placed before #7402, matching upstream's merge order. The include block
    additionally carries `<ranges>`: upstream's diff adds only `<algorithm>` because develop
    already had it, whereas v23.1.x did not and the backported `GetSessionCount()` /
    `GetAnnouncementSessionCount()` use `std::ranges::count_if`.
  - **#7465** (`fix(qt): handle pixel-sized fonts when scaling widgets`) — cherry-picked from
    the five upstream commits. `optiontests.cpp` additionally includes `qt/guiutil_font.h`,
    because `fontsLoaded()` and `updateFonts()` are declared there on v23.1.x while develop
    declares them in `qt/guiutil.h`, which is all the upstream test includes.

  Two further backports were added later and applied without any adaptation --
  their diffs are byte-for-byte identical to upstream:

  - **#7347** (`fix: punish invalid dstx messages`)
  - **#7348** (`fix: penalize oversized notfound messages`)

  ## Adaptations worth flagging

  - **#7360** — upstream gates `platformP2PPort` / `platformHTTPPort` in `protx listdiff` behind `IsServiceDeprecatedRPCEnabled()`. On 23.x those deprecated fields are deliberately not enforced through gating (see `bbcd9d543e6`), so shipping the gate as-is would silently drop two fields that v23.1.7 always returned. Changed to `if (true)` with a comment, per review feedback, keeping the block aligned with `develop`. The substantive fix from #7360 — reading the live port from `netInfo` instead of the always-zero scalar — is retained.

  - **#7415** — the pending-map caps (`MAX_PENDING_SIG_SHARES_PER_NODE`, `MAX_PENDING_SIG_SHARES_TOTAL`) are backported. The additional bound upstream places on batches awaiting verification is not, because it guards a condition that does not exist here: upstream's dispatcher pushes one task per batch inside an inner loop, whereas v23.1.x pushes a single looping worker per 10 ms tick. There is no unbounded task queue to bound.

  - **Man pages** — regenerated without the `lock` debug category, which only exists under `DEBUG_LOCKCONTENTION` and so is absent from release binaries. Thanks @UdjinM6 for catching this.

  ## Known CI failure

  macOS jobs are expected to fail. `actions/upload-artifact@v6` rejects filenames containing `:`, and the Xcode SDK ships Perl man pages with `::` in the name. A release-branch-only workaround existed on the earlier revision but was dropped as it corresponds to no upstream PR. This is accepted for this release.

  ## Testing

  - Every commit through #7465 compiles individually (verified for 27 of the 29; the three additions below were verified at the tip) — verified individually, not just at the tip.
  - Full build clean; no new warnings.
  - Unit tests pass.
  - Functional tests pass: `feature_llmq_signing` (both variants), `feature_llmq_chainlocks`, `feature_llmq_dkgerrors`, `feature_llmq_is_cl_conflicts`, `p2p_instantsend`, `feature_dip3_deterministicmns` (both wallet types), `rpc_coinjoin`.
  - Qt unit tests pass (32 cases, run under the `cocoa` platform plugin so the pixel-sized
    font regression from #7465 actually executes rather than self-skipping).
  - Lint: one pre-existing `lint-cppcheck-dash` failure, identical on v23.1.7, in files this branch does not touch.

Top commit has no ACKs.

Tree-SHA512: 0fa469c9a33820aa85fbb8b90c5877409d09490f746f1300b05ceda470a600765f900bec42e5aad5d90a2d46b44e28c20e44dc4a8fe719553a072298069eaec4
@UdjinM6 UdjinM6 modified the milestones: 24, 23.1.8 Jul 30, 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.

[UI] - On the Masternodes Tab, the check box 'Hide Banned'...

3 participants