Skip to content

Conversation

@Fuzzbawls
Copy link
Collaborator

Followup to #2717 which was incorrectly marking proposals as Over Budget
instead of Not Passing

@Fuzzbawls Fuzzbawls added GUI Bug Trivial extremely simple issues labels Sep 11, 2022
@Fuzzbawls Fuzzbawls added this to the 5.5.0 milestone Sep 11, 2022
@Fuzzbawls Fuzzbawls self-assigned this Sep 11, 2022
DeanSparrow
DeanSparrow previously approved these changes Sep 16, 2022
Copy link

@DeanSparrow DeanSparrow left a comment

Choose a reason for hiding this comment

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

I have reviewed this change

@yenachar
Copy link

My reading is that (all other conditions equal) now if allocatedAmount + prop->GetAmount() <= getMaxAvailableBudgetAmount() the proposal status is NOT_PASSING while before it was PASSING_NOT_FUNDED. That seems strange to me and might merit a double check.

Followup to PIVX-Project#2717 which was incorrectly marking proposals as Over Budget
 instead of Not Passing
Determining if a proposal is over budget requires an accurate count of
the number of MNs active on the network. To get this, start the MN
update timer on launch as well as when activating the DAO page.
@Fuzzbawls
Copy link
Collaborator Author

Here are screenshots to show how this logic change is effective
5.4.0 (does not actually have the PASSING_NOT_FUNDED flag):
Image 120

master branch:
Image 121

this PR:
Image 123

Note: I did add an additional commit to start the MN update timer at launch, and when activating the DAO page of the UI. Without that, the cached MN count would only be updated when activating the Settings -> Debug -> Info page or the RPCConsole UI window.

@yenachar
Copy link

ACK a450ea2

Good check. My reading is that the isPassing variable in the if/else enables the desired logic..

Copy link

@DeanSparrow DeanSparrow left a comment

Choose a reason for hiding this comment

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

utACK 2ba665c

@Fuzzbawls Fuzzbawls merged commit c439ec7 into PIVX-Project:master Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug GUI Trivial extremely simple issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants