Bitcoin Forum
December 08, 2016, 06:16:44 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Negative balance  (Read 4637 times)
alkor
Full Member
***
Offline Offline

Activity: 137


View Profile
February 28, 2011, 02:33:21 AM
 #1


When I try to list the balance in my accounts, I get the following output:

Code:
$ ./bitcoind listaccounts{
    "" : -452.19000000,
    "bonus" : 0.00000000,
    "forum" : 0.00000000,
    "original" : 875.45000000
}

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

Also, when I try to get rid of the negative balance by trying I get an error:

Code:
$ ./bitcoind move "" original -452.19
error: {"code":-3,"message":"Invalid amount"}

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.
1481221004
Hero Member
*
Offline Offline

Posts: 1481221004

View Profile Personal Message (Offline)

Ignore
1481221004
Reply with quote  #2

1481221004
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
tcatm
Sr. Member
****
qt
Offline Offline

Activity: 337


View Profile
February 28, 2011, 02:35:58 AM
 #2

move coins from original to ""
alkor
Full Member
***
Offline Offline

Activity: 137


View Profile
February 28, 2011, 02:40:18 AM
 #3

move coins from original to ""

Thanks. That fixed the problem

Code:
$ ./bitcoind move original "" 452.19
true
$ ./bitcoind listaccounts
{
    "" : 0.00000000,
    "bonus" : 0.00000000,
    "forum" : 0.00000000,
    "original" : 423.26000000
}

EDIT: Is there a way to get rid of the "" account?
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
February 28, 2011, 02:56:46 AM
 #4

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.

How often do you get the chance to work on a potentially world-changing project?
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!