• Gavin Andresen's avatar
    Fix getbalance discrepency · 5536482d
    Gavin Andresen authored
    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,
    5536482d
wallet.cpp 58.1 KB