Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: alkor on February 28, 2011, 02:33:21 AM



Title: Negative balance
Post by: alkor on February 28, 2011, 02:33:21 AM
When I try to list the balance in my accounts, I get the following output:

Code:
$ ./bitcoind listaccounts{
    "a" : -4.00000000,
    "b" : 0.00000000,
    "c" : 0.00000000,
    "d" : 8.00000000
}

Why do I have a negative balance in one of my accounts?

How can I get rid of the negative balance? I think I ended up with it because I made a payment from an address to the same address.


Title: Re: Negative balance
Post by: tcatm on February 28, 2011, 02:35:58 AM
move coins from original to ""


Title: Re: Negative balance
Post by: alkor on February 28, 2011, 02:40:18 AM
Thanks. That fixed the problem

EDIT: Is there a way to get rid of the "" account?


Title: Re: Negative balance
Post by: Gavin Andresen on February 28, 2011, 02:56:46 AM
EDIT: Is there a way to get rid of the "" account?

No.  Generated coins need a place to go (they're credited to the "" account), and coins you send using sendtoaddress (where you don't specify an account) need to be debited from somewhere (they're debited from the "" account).

And it's theoretically possible somebody might could use one of your hidden "change" bitcoin addresses to send you coins; they'd be credited to the "" account, too.