-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude spent outputs from remote staking balance (#1000)
At the moment, WalletExtension::GetRemoteStakingBalance counts every output in remote staking coinbase and shows incorrect data in getwalletinfo response. This change excludes spent outputs from remote staking balance. * Ignore spent transaction in WalletExtension::GetRemoteStakingBalance * Don't count spent outputs in GetRemoteStakingBalance * Fix nits * Check actual balance unchanged * Add a test case for remote stake spending Signed-off-by: Dmitry Saveliev <dima@thirdhash.com>
- Loading branch information
Showing
3 changed files
with
110 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters