Fix getbalance discrepency #2272

pull gavinandresen wants to merge 1 commits into bitcoin:master from gavinandresen:getbalancefix changing 2 files +3 −3
  1. gavinandresen commented at 7:09 PM on February 4, 2013: contributor

    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).

  2. 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,
    d28bd8b7ca
  3. Diapolo commented at 10:27 PM on February 4, 2013: none

    Does this affect Bitcoin-Qt in a way we need to take care of? Just asking without any research...

  4. BitcoinPullTester commented at 2:21 AM on February 5, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/d28bd8b7ca2d0d9ad5f01e005b49acdd3a9eb917 for binaries and test log.

  5. sipa commented at 6:26 PM on April 7, 2013: member

    ACK

  6. Diapolo commented at 6:38 AM on April 8, 2013: none

    @sipa Can you comment to my question above ;)?

  7. gavinandresen referenced this in commit 1829134afe on Apr 8, 2013
  8. gavinandresen merged this on Apr 8, 2013
  9. gavinandresen closed this on Apr 8, 2013

  10. sipa commented at 2:00 PM on April 8, 2013: member

    I don't think this influences the GUi in any way.

  11. namecoin-qt referenced this in commit e913982d7a on Jun 10, 2013
  12. gavinandresen deleted the branch on Nov 4, 2013
  13. davispuh referenced this in commit dd7be967be on Feb 18, 2014
  14. laudney referenced this in commit 2e4a784735 on Mar 19, 2014
  15. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 06:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me