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.
Negative balance for account "" and unable to assign a label to "" #2191
issue rricci2009 opened this issue on January 19, 2013-
rricci2009 commented at 1:09 PM on January 19, 2013: none
-
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.
-
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.
- gavinandresen closed this on Jan 21, 2013
-
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?
-
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.
-
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?
-
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)
- sidhujag referenced this in commit f19cdd4e78 on Jul 31, 2018
- DrahtBot locked this on Sep 8, 2021