diff options
| author | Gavin Andresen <[email protected]> | 2013-02-04 14:04:26 -0500 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-02-04 14:04:26 -0500 |
| commit | d28bd8b7ca2d0d9ad5f01e005b49acdd3a9eb917 (patch) | |
| tree | 1aa2096839505192c878fbd83377a9c778f0cbf9 /src/net.cpp | |
| parent | Merge pull request #2260 from Diapolo/translations (diff) | |
| download | discoin-d28bd8b7ca2d0d9ad5f01e005b49acdd3a9eb917.tar.xz discoin-d28bd8b7ca2d0d9ad5f01e005b49acdd3a9eb917.zip | |
Fix getbalance discrepency
Two changes:
Use IsConfirmed() instead of IsFinal(), so 'getbalance "*" 0' uses the same
'is this output spendable' criteria as 'getbalance'. Fixes issue #172.
And a tiny refactor to CWallet::GetBalance() (redundant call to IsFinal -- IsConfirmed
calls IsFinal).
getbalance with no arguments and 'getbalance "*" 0' could return different different results,
Diffstat (limited to 'src/net.cpp')
0 files changed, 0 insertions, 0 deletions