In some reason my wallet accounting broken. I have total 0.1 BTC on wallet and getbalance without params returns correct value.
But when I provide account to this api call (i.e. empty account), it returns incorrect values - greater than overall balance or even negative.
-rescan and -updatewallet - both didn't help. It show absolutely unreal values in listaccounts balances.
[user@localhost ~]$ bin/bitcoind getinfo { "version" : 80500, "protocolversion" : 70001, "walletversion" : 10500, "balance" : 0.10000000, "blocks" : 258337, "timeoffset" : -1, "connections" : 8, "proxy" : "", "difficulty" : 112628548.66634709, "testnet" : false, "keypoololdest" : 1327805721, "keypoolsize" : 101, "paytxfee" : 0.00000000, "errors" : "" } [user@localhost ~]$ bin/bitcoind getbalance 0.10000000 [user@localhost ~]$ bin/bitcoind getbalance '' -20231.03669102 [user@localhost ~]$ bin/bitcoind listaccounts { "" : -20231.03669102, "acc_" : 0.00000000, "acc_" : 50.00000000, "acc_" : 0.00000000, "acc_" : 7.00000000, "acc_" : 50.00000000, "acc_" : 5905.00000000, } ==RAW HTTP== <--- getbalance[ no params ] POST / HTTP/1.1 User-Agent: bitcoin-json-rpc/v0.8.5-beta Host: 127.0.0.1 Content-Type: application/json Content-Length: 43 Connection: close Accept: application/json Authorization: Basic *************
{"method":"getbalance","params":[],"id":1} ------> HTTP/1.1 200 OK Date: Mon, 16 Sep 2013 15:15:18 +0000 Connection: close Content-Length: 42 Content-Type: application/json Server: bitcoin-json-rpc/v0.8.5-beta
{"result":0.10000000,"error":null,"id":1}
<--- getbalance[ "" ] POST / HTTP/1.1 User-Agent: bitcoin-json-rpc/v0.8.5-beta Host: 127.0.0.1 Content-Type: application/json Content-Length: 45 Connection: close Accept: application/json Authorization: Basic *****************
{"method":"getbalance","params":[""],"id":1} ------> HTTP/1.1 200 OK Date: Mon, 16 Sep 2013 15:16:15 +0000 Connection: close Content-Length: 47 Content-Type: application/json Server: bitcoin-json-rpc/v0.8.5-beta
{"result":-20231.03669102,"error":null,"id":1}