0.12 getbalance behavior #7597

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

    Is this correct behavior?

    0$ ~/bitcoin/src/bitcoin-cli getbalance
    16.60409702
    2
    3$ ~/bitcoin/src/bitcoin-cli getbalance "*" 0
    4-13.05526813
    5
    6$ ~/bitcoin/src/bitcoin-cli getbalance "*" 1
    7-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

    0$ ~/bitcoin/src/bitcoin-cli getbalance
    18.13576857
    2$ ~/bitcoin/src/bitcoin-cli getbalance "*"
    38.13576857
    4$ ~/bitcoin/src/bitcoin-cli getbalance "*" 0
    58.13576857
    6$ ~/bitcoin/src/bitcoin-cli getbalance "*" 1
    78.13576857
    8$ ~/bitcoin/src/bitcoin-cli getbalance "*" 1 true
    98.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: 2024-11-17 15:12 UTC

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