Negative balance for account "" and unable to assign a label to "" #2191

issue rricci2009 opened this issue on January 19, 2013
  1. rricci2009 commented at 1:09 PM on January 19, 2013: none

    After few transaction by "sendtoaddress" command balance in "" become negative. I solved with the "move" command from more account to "". I suppose this is a bug.

  2. luke-jr commented at 1:15 PM on January 19, 2013: member

    Sounds like it worked fine? If you want to send from another account, use the sendfrom method.

  3. gavinandresen commented at 5:53 PM on January 21, 2013: contributor

    Not a bug, sendtoaddress always debits the "" account.

    If you don't like that behavior, don't use sendtoaddress.

  4. gavinandresen closed this on Jan 21, 2013

  5. Tectract commented at 10:02 PM on April 29, 2013: none

    Hmmm, this happened to me today, the negative balance kind of freaked me out for a moment. What is the proper way to send coins on the command line to a specified address, if not sendtoaddress? Or is this expected behavior?

  6. sipa commented at 10:05 PM on April 29, 2013: member

    That is expected behaviour, if your incoming transactions credit accounts other than "", but outgoing transactions debit account "" (the default if you're not using sendfrom), the "" account will go negative. As accounts are purely virtual balances, and have nothing to do with the actual amount of coins in the whole wallet, this is not a problem.

  7. Tectract commented at 12:58 AM on April 30, 2013: none

    Errr. Ok. Interesting. So, is there a way to do something like a sendtoaddress command that won't leave me with odd negative balances?

  8. gavinandresen commented at 1:44 AM on April 30, 2013: contributor

    Use the sendfrom RPC command.

    And you can use the 'move' RPC command to reset account balances to what you expect (and listaccounts to see all accounts / balances)

  9. sidhujag referenced this in commit f19cdd4e78 on Jul 31, 2018
  10. 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-22 09:16 UTC

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