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

[Wallet][RPC][GUI] nStakeSplitThreshold as CAmount #1345

Merged

Conversation

random-zebra
Copy link

Follow-up on #1343

  • Wallet: save/use nStakeSplitThreshold as CAmount
  • RPC: setstakesplitthreshold takes decimal values
  • RPC: getstakesplitthreshold returns a double
  • GUI: widget in settingsoptions changed to QDoubleSpinBox
  • GUI: QSetting saved as double.

- Wallet: save/use nStakeSplitThreshold as CAmount
- RPC: setstakesplitthreshold takes decimal values
- RPC: getstakesplitthreshold returns a double
- GUI: widget in settingsoptions changed to QDoubleSpinBox
- GUI: QSetting saved as qlonglong.
@random-zebra random-zebra added this to the 4.1.0 milestone Feb 20, 2020
@random-zebra random-zebra self-assigned this Feb 20, 2020
@furszy
Copy link

furszy commented Feb 23, 2020

Wouldn't be better to remove the nStakeSplitThreshold from the QSettings here instead of continue modifying it?

@random-zebra
Copy link
Author

Yes, @furszy, as stated in #1350 .
It will be addressed in a subsequent PR.

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 6f05f01

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.

Left a tiny correction for later, the rest is working fine. ACK 6f05f01

<widget class="QSpinBox" name="spinBoxStakeSplitThreshold">
<widget class="QDoubleSpinBox" name="spinBoxStakeSplitThreshold">
<property name="decimals">
<number>3</number>
Copy link

Choose a reason for hiding this comment

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

Should be using the display decimal digits stored field instead of a fixed one (Plus, the default value is 2 decimals).

Inside the SettingsWalletOptionsWidget class, ui->spinBoxStakeSplitThreshold->setDecimals(2)

@furszy furszy merged commit abdc0e7 into PIVX-Project:master Mar 1, 2020
random-zebra added a commit that referenced this pull request Mar 2, 2020
e29ea53 [Doc] Add change to default stake-split threshold value (random-zebra)
cb16380 [GUI] Do not save stake-split threshold in QSettings (random-zebra)
7aaa1cc [Wallet] Lower DEFAULT_STAKE_SPLIT_THRESHOLD from 2000 down to 500 (random-zebra)

Pull request description:

  - Lower default value of stake-split threshold
  - Do not save it directly in QSettings (just in the wallet db).

  Built on #1345
  Closes #1350

ACKs for top commit:
  furszy:
    utACK e29ea53.
  Fuzzbawls:
    ACK e29ea53

Tree-SHA512: 6197ee7e8270de2b3905c427a8b003be32a5020266a4b57709a09c0194a3e253cf574cba9e12efce8afbf360602947648427aa891d900ab5077cc476585d99c7
@random-zebra random-zebra deleted the 2020_nStakeSplitThreshold_CAmount branch September 24, 2020 00:27
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.

None yet

3 participants