-
Notifications
You must be signed in to change notification settings - Fork 717
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
[Wallet][RPC][GUI] nStakeSplitThreshold as CAmount #1345
Conversation
- 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.
Wouldn't be better to remove the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 6f05f01
There was a problem hiding this 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> |
There was a problem hiding this comment.
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)
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
Follow-up on #1343