Skip to content

Conversation

@random-zebra
Copy link

Straightforward.
Also remove an extra check/parsing in CWallet::StakeableCoins.

@random-zebra random-zebra added this to the 4.1.0 milestone Mar 2, 2020
@random-zebra random-zebra self-assigned this Mar 2, 2020
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.

straightforward, utACK 38011f6

@furszy
Copy link

furszy commented Mar 3, 2020

we should close this, #1373 is removing it anyway.

@random-zebra
Copy link
Author

Yep. As stated in the PR description there, if it is conceptually accepted, will close this one.

@furszy
Copy link

furszy commented Mar 4, 2020

by-passed that last sentence in the other PR description and went directly into the code, sorry.
You already know my answer, let's get rid of it.

@random-zebra
Copy link
Author

Alright, closing in favor of #1373

random-zebra added a commit that referenced this pull request Mar 11, 2020
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
akshaynexus pushed a commit to ZENZO-Ecosystem/ZENZO-Core that referenced this pull request Mar 15, 2020
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
akshaynexus pushed a commit to ZENZO-Ecosystem/ZENZO-Core that referenced this pull request Mar 15, 2020
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
akshaynexus pushed a commit to ZENZO-Ecosystem/ZENZO-Core that referenced this pull request Mar 15, 2020
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
@random-zebra random-zebra deleted the 2020_nReserveBalance 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.

2 participants