0.12 getbalance behavior #7597

issue message opened this issue on February 25, 2016
  1. message commented at 8:41 AM on February 25, 2016: none

    Is this correct behavior?

    $ ~/bitcoin/src/bitcoin-cli getbalance
    6.60409702
    
    $ ~/bitcoin/src/bitcoin-cli getbalance "*" 0
    -13.05526813
    
    $ ~/bitcoin/src/bitcoin-cli getbalance "*" 1
    -13.05578512
    

    As i understood from documentation, getbalance == getbalance "*" 1

  2. jonasschnelli commented at 9:09 AM on February 25, 2016: contributor

    Do you have WatchOnly addresses? getbalance should return the same as getbalance "*" 1 true, although, internal two code-paths are used for the calculation. There could be a bug/difference.

  3. jonasschnelli added the label Wallet on Feb 25, 2016
  4. message commented at 10:40 AM on February 25, 2016: none

    Sorry, since it was issue on a production server, i've rolled back to 0.11.2 with -reindex. I'm not going to be able to run getbalance "*" 1 true at the moment.

  5. MarcoFalke commented at 10:48 AM on February 25, 2016: member

    I think this issue was already in 0.8 or even earlier. I can't check right now, though.

  6. message commented at 6:20 PM on February 25, 2016: none

    With 0.11.2

    $ ~/bitcoin/src/bitcoin-cli getbalance
    8.13576857
    $ ~/bitcoin/src/bitcoin-cli getbalance "*"
    8.13576857
    $ ~/bitcoin/src/bitcoin-cli getbalance "*" 0
    8.13576857
    $ ~/bitcoin/src/bitcoin-cli getbalance "*" 1
    8.13576857
    $ ~/bitcoin/src/bitcoin-cli getbalance "*" 1 true
    8.13576857
    
  7. MarcoFalke commented at 10:14 PM on February 28, 2016: member

    (Related pull: #6276)

  8. fanquake closed this on Mar 6, 2018

  9. MarcoFalke 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-13 15:15 UTC

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