HomePhabricator

Fix getbalance discrepency
d28bd8b7ca2dUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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,

Details

Provenance
Gavin Andresen <gavinandresen@gmail.com>Authored on Feb 4 2013, 19:04
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING77052ab0f396: Merge pull request #2260 from Diapolo/translations
Branches
Unknown
Tags
Unknown

Event Timeline

Gavin Andresen <gavinandresen@gmail.com> committed rSTAGINGd28bd8b7ca2d: Fix getbalance discrepency (authored by Gavin Andresen <gavinandresen@gmail.com>).Feb 4 2013, 19:04