Skip to content

[GUI] Fix invalid MN collateral amount and align every static 10k PIV strings.#2397

Merged
random-zebra merged 2 commits into
PIVX-Project:masterfrom
furszy:2021_GUI_fix_regtest_mn_creation
Jun 28, 2021
Merged

[GUI] Fix invalid MN collateral amount and align every static 10k PIV strings.#2397
random-zebra merged 2 commits into
PIVX-Project:masterfrom
furszy:2021_GUI_fix_regtest_mn_creation

Conversation

@furszy

@furszy furszy commented May 20, 2021

Copy link
Copy Markdown

Since #2296, we have a different masternode collateral output amount for regtest. As the GUI has the 10k value harcoded in some places, the masternode creation wizard got broken and there are some misaligned strings as well.

This PR fixes it and aligns every static 10k PIV string to be set dynamically consuming the chain params value.

@furszy furszy self-assigned this May 20, 2021
@furszy furszy added this to the 6.0.0 milestone May 20, 2021
@furszy furszy force-pushed the 2021_GUI_fix_regtest_mn_creation branch from 071939e to 780626b Compare May 25, 2021 12:54

@random-zebra random-zebra 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.

Code ACK, minus lost html-formatting in the first screen of the mn wizard.

One minor concern I have is about the change in the FAQs.
Someone reading on a regtest wallet might think that the same applies verbatim on all networks.
But, on the other hand, someone using the regtest probably already knows what's he doing.

Comment thread src/qt/pivx/masternodewizarddialog.cpp Outdated
@furszy

furszy commented Jun 25, 2021

Copy link
Copy Markdown
Author

Yep, i'm fine either way.
if the person is using regtest, then he/she at least know that there are different networks with different consensus parameters.

@furszy furszy force-pushed the 2021_GUI_fix_regtest_mn_creation branch from 780626b to 3c5b5f3 Compare June 25, 2021 14:05
@furszy

furszy commented Jun 25, 2021

Copy link
Copy Markdown
Author

Feedback tackled, this is a bug blocking masternodes to be created in regtest. Let's merge it.

@furszy furszy requested review from Fuzzbawls and random-zebra June 25, 2021 14:07

@random-zebra random-zebra 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 3c5b5f3

@random-zebra

Copy link
Copy Markdown

merging...

@random-zebra random-zebra merged commit 7a6f029 into PIVX-Project:master Jun 28, 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.

2 participants