Skip to content

fix: MN update notifications had old_list/new_list swapped#7154

Merged
PastaPastaPasta merged 1 commit intodashpay:developfrom
UdjinM6:fix_mnupdate_notifications
Feb 19, 2026
Merged

fix: MN update notifications had old_list/new_list swapped#7154
PastaPastaPasta merged 1 commit intodashpay:developfrom
UdjinM6:fix_mnupdate_notifications

Conversation

@UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Feb 18, 2026

Issue being fixed or feature implemented

  • UI: Masternode list tab displayed state at block X-1 while node was at block X
  • Net: mnauth disconnect handling could miss removals, keeping removed masternode peers connected longer than intended

Noticed while reviewing #7146

What was done?

How Has This Been Tested?

Run qt, open masternode list tab, sort by last paid (desc). Open Info dialog to see block height, wait for another block after full sync and compare.

Breaking Changes

n/a

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)

Impact:
- UI: Masternode list tab displayed state at block X-1 while node was at block X
- Net: mnauth disconnect handling could miss removals, keeping removed masternode peers connected longer than intended
@UdjinM6 UdjinM6 added this to the 23.1.1 milestone Feb 18, 2026
@github-actions
Copy link

✅ No Merge Conflicts Detected

This PR currently has no conflicts with other open PRs.

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK 5e5aaec

@coderabbitai
Copy link

coderabbitai bot commented Feb 18, 2026

No actionable comments were generated in the recent review. 🎉


Walkthrough

The changes modify two aggregate initializations in src/evo/deterministicmns.cpp by switching from positional initialization syntax to designated-field initialization. Specifically, the MNListUpdates struct initialization in ProcessBlock and UndoBlock now explicitly names each field (old_list, new_list, diff) rather than relying on implicit field ordering.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 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%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main fix: swapping of old_list and new_list fields in MNListUpdates initialization, which directly addresses the UI and network issues mentioned in the PR objectives.
Description check ✅ Passed The description clearly relates to the changeset by explaining the issues being fixed (UI displaying wrong block state, mnauth disconnect handling) and how to test the fix, though the 'What was done?' section is empty.

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

✨ Finishing Touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


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.

@UdjinM6 UdjinM6 requested a review from knst February 18, 2026 18:33
Copy link
Collaborator

@kwvg kwvg left a comment

Choose a reason for hiding this comment

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

utACK 5e5aaec

@PastaPastaPasta PastaPastaPasta merged commit 3046711 into dashpay:develop Feb 19, 2026
43 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments