-
Notifications
You must be signed in to change notification settings - Fork 725
[Refactor] move nReserveBalance from main to wallet #1366
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
[Refactor] move nReserveBalance from main to wallet #1366
Conversation
nReserveBalance is set (and checked) during init or via RPC reservebalance
furszy
left a comment
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.
straightforward, utACK 38011f6
|
we should close this, #1373 is removing it anyway. |
|
Yep. As stated in the PR description there, if it is conceptually accepted, will close this one. |
|
by-passed that last sentence in the other PR description and went directly into the code, sorry. |
|
Alright, closing in favor of #1373 |
721b109 [Doc] Remove reservebalance (random-zebra) a4627c6 [Core] remove nReserveBalance ext var (and -reservebalance option) (random-zebra) d481e77 [Wallet] StakeableCoins: remove reserve balance check (random-zebra) 35f0122 [RPC] Remove reservebalance RPC method (random-zebra) Pull request description: `reservebalance` is a leftover from peercoin code which was probably never used. Currently it is also broken: the final loop in `CWallet::StakeableCoins` is useless (updating an un-used local variable `nAmountSelected` and not removing any utxo from the vector of stakeable coins). Failing to see a valid use-case for it (not already provided by the stake-split threshold), I propose to just remove it. This also makes the call to `GetStakingBalance` from `StakeableCoins` not needed (thus one less loop over mapWallet txes). If this is accepted (at least conceptually) will update the release notes, and close #1366 (superseded by this one). ACKs for top commit: furszy: utACK 721b109. Fuzzbawls: utACK 721b109 Tree-SHA512: 972749a7181dbc373b1bc64a6ceae357fb478f49cefe8f4c2271bf8f3c2a8088d69e46a8687ed007eab8287a124df0e266ad626d01bc22a11742a3b9b8a00284
721b109 [Doc] Remove reservebalance (random-zebra) a4627c6 [Core] remove nReserveBalance ext var (and -reservebalance option) (random-zebra) d481e77 [Wallet] StakeableCoins: remove reserve balance check (random-zebra) 35f0122 [RPC] Remove reservebalance RPC method (random-zebra) Pull request description: `reservebalance` is a leftover from peercoin code which was probably never used. Currently it is also broken: the final loop in `CWallet::StakeableCoins` is useless (updating an un-used local variable `nAmountSelected` and not removing any utxo from the vector of stakeable coins). Failing to see a valid use-case for it (not already provided by the stake-split threshold), I propose to just remove it. This also makes the call to `GetStakingBalance` from `StakeableCoins` not needed (thus one less loop over mapWallet txes). If this is accepted (at least conceptually) will update the release notes, and close PIVX-Project#1366 (superseded by this one). ACKs for top commit: furszy: utACK 721b109. Fuzzbawls: utACK 721b109 Tree-SHA512: 972749a7181dbc373b1bc64a6ceae357fb478f49cefe8f4c2271bf8f3c2a8088d69e46a8687ed007eab8287a124df0e266ad626d01bc22a11742a3b9b8a00284
721b109 [Doc] Remove reservebalance (random-zebra) a4627c6 [Core] remove nReserveBalance ext var (and -reservebalance option) (random-zebra) d481e77 [Wallet] StakeableCoins: remove reserve balance check (random-zebra) 35f0122 [RPC] Remove reservebalance RPC method (random-zebra) Pull request description: `reservebalance` is a leftover from peercoin code which was probably never used. Currently it is also broken: the final loop in `CWallet::StakeableCoins` is useless (updating an un-used local variable `nAmountSelected` and not removing any utxo from the vector of stakeable coins). Failing to see a valid use-case for it (not already provided by the stake-split threshold), I propose to just remove it. This also makes the call to `GetStakingBalance` from `StakeableCoins` not needed (thus one less loop over mapWallet txes). If this is accepted (at least conceptually) will update the release notes, and close PIVX-Project#1366 (superseded by this one). ACKs for top commit: furszy: utACK 721b109. Fuzzbawls: utACK 721b109 Tree-SHA512: 972749a7181dbc373b1bc64a6ceae357fb478f49cefe8f4c2271bf8f3c2a8088d69e46a8687ed007eab8287a124df0e266ad626d01bc22a11742a3b9b8a00284
721b109 [Doc] Remove reservebalance (random-zebra) a4627c6 [Core] remove nReserveBalance ext var (and -reservebalance option) (random-zebra) d481e77 [Wallet] StakeableCoins: remove reserve balance check (random-zebra) 35f0122 [RPC] Remove reservebalance RPC method (random-zebra) Pull request description: `reservebalance` is a leftover from peercoin code which was probably never used. Currently it is also broken: the final loop in `CWallet::StakeableCoins` is useless (updating an un-used local variable `nAmountSelected` and not removing any utxo from the vector of stakeable coins). Failing to see a valid use-case for it (not already provided by the stake-split threshold), I propose to just remove it. This also makes the call to `GetStakingBalance` from `StakeableCoins` not needed (thus one less loop over mapWallet txes). If this is accepted (at least conceptually) will update the release notes, and close PIVX-Project#1366 (superseded by this one). ACKs for top commit: furszy: utACK 721b109. Fuzzbawls: utACK 721b109 Tree-SHA512: 972749a7181dbc373b1bc64a6ceae357fb478f49cefe8f4c2271bf8f3c2a8088d69e46a8687ed007eab8287a124df0e266ad626d01bc22a11742a3b9b8a00284
Straightforward.
Also remove an extra check/parsing in
CWallet::StakeableCoins.