Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RPC][BUG] Fix 'mnfinalbudget show' returning a single budget #1894

Merged

Conversation

random-zebra
Copy link

@random-zebra random-zebra commented Oct 2, 2020

Fixes a bug in the RPC mnfinalbudget show.

All finalized budgets have the same name ("main").
This is used as key for the object returned by the RPC, therefore only one single finalized budget is returned (despite there being many more in the map).

Fix it by adding the hash to the object key (removing it from the object value).

Side note: why finalized budgets do even need a strBudgetName (which is the same for every one) is a mystery to me... but, since it's part of the broadcast, we can't just outright remove it, it needs to be guarded with a network upgrade (future work).

Because all of them have the same name (object key).
Fix it by adding the nHash to the object key (removing it from the
object value).
Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

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

ACK a375586

Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

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

The RPC command output change will need to be added to the release notes (the hash field removal, not the other one).

ACK a375586

@furszy furszy added the Needs Release Notes Placeholder tag for anything needing mention in the "Notable Changes" section of release notes label Oct 3, 2020
@furszy furszy merged commit f02fcc1 into PIVX-Project:master Oct 3, 2020
@random-zebra random-zebra removed the Needs Release Notes Placeholder tag for anything needing mention in the "Notable Changes" section of release notes label Jan 3, 2021
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