Skip to content

fix: hpmn adjustements to getprojectedmnpayees - #5274

Merged
PastaPastaPasta merged 5 commits into
dashpay:developfrom
ogabrielides:projected_hpmn_payments_fix
Mar 30, 2023
Merged

fix: hpmn adjustements to getprojectedmnpayees#5274
PastaPastaPasta merged 5 commits into
dashpay:developfrom
ogabrielides:projected_hpmn_payments_fix

Conversation

@ogabrielides

@ogabrielidesogabrielides commented Mar 28, 2023

Copy link
Copy Markdown

Issue being fixed or feature implemented

GetProjectedMNPayees wasn't projecting MN payees correctly.

What was done?

HPMNs are now added 4 times before sorting the return list.
In addition, the case of last payee being HPMN and having still pending payments is handled.

How Has This Been Tested?

Tested on Masternodes / Next Payment tab on Qt client on Testnet.

Breaking Changes

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

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Comment threadsrc/evo/deterministicmns.cpp
@ogabrielides

Copy link
Copy Markdown
Author

@PastaPastaPasta how about now?

Comment threadsrc/evo/deterministicmns.cpp
Comment threadsrc/evo/deterministicmns.cpp
@ogabrielides

Copy link
Copy Markdown
Author

@UdjinM6 What about now?

Comment threadsrc/evo/deterministicmns.cpp Outdated

@UdjinM6UdjinM6 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.

LGTM, utACK

@PastaPastaPastaPastaPastaPasta 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.

utACK for squash merge

@PastaPastaPasta
PastaPastaPasta merged commit 2d89442 into dashpay:developMar 30, 2023
@ogabrielides
ogabrielides deleted the projected_hpmn_payments_fix branch March 30, 2023 15:10
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Mar 30, 2023
## Issue being fixed or feature implemented
`GetProjectedMNPayees` wasn't projecting MN payees correctly.
## What was done?
HPMNs are now added 4 times before sorting the return list.
In addition, the case of last payee being HPMN and having still pending
payments is handled.
## How Has This Been Tested?
Tested on Masternodes / Next Payment tab on Qt client on Testnet.
## Breaking Changes
## Checklist:
- [x] I have performed a self-review of my own code
- [x] 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
**For repository code-owners and collaborators only**
- [x] I have assigned this pull request to a milestone
Sign up for freeto 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

@ogabrielides@UdjinM6@PastaPastaPasta