'getbalance' does not match sum of 'listaccounts'

Namecoin, NMControl
Post Reply
praz
Posts: 10
Joined: Tue Dec 20, 2011 6:15 am
os: windows

'getbalance' does not match sum of 'listaccounts'

Post by praz »

Hi,

I found this strange behaviour of 'namecoind' version 32464..

Code: Select all

C:\nmc>namecoind getbalance
0.83939999
on the other hand..

Code: Select all

C:\nmc>namecoind listaccounts
{
    "" : -0.22450000,
    "BitcoinSuite" : 0.00000000,
    "NamecoinJ" : 0.00000000,
    "faucet.yepcorp.com" : 1.16190000,
    "mining.bitcoin.cz" : 0.02500000,
    "test" : 0.00699999
}
Apparently, the total balance returned by 'getbalance' (0.83939999) does not match the sum of balances in all accounts returned by 'listaccounts' (0.96939999)..

How are they supposed to be?

~bowo~

moa
Posts: 255
Joined: Mon May 23, 2011 6:13 am

Re: 'getbalance' does not match sum of 'listaccounts'

Post by moa »

Yes, this does look strange.

They are out by 0.13, correct?

How is it that you have a negative balance in the "" account? Is this a transitory thing? (i.e. are there some fees that need to confirm or something)

doublec
Posts: 149
Joined: Mon May 23, 2011 12:47 am
os: linux
Location: Auckland, New Zealand
Contact:

Re: 'getbalance' does not match sum of 'listaccounts'

Post by doublec »

moa wrote: How is it that you have a negative balance in the "" account? Is this a transitory thing? (i.e. are there some fees that need to confirm or something)
Negative account balances happen when you do a "sendfrom" for the full amount in the account but a fee is charged. The full amount is transferred from the account and the fee puts in into negative.

praz
Posts: 10
Joined: Tue Dec 20, 2011 6:15 am
os: windows

Re: 'getbalance' does not match sum of 'listaccounts'

Post by praz »

about negative balance in default account "".. other than what explained by doublec.. first it happened when i did 'move' command from account "" which was initially empty to account "test"..

and after long time no activity.. currently my wallet shows..

Code: Select all

C:\nmc>namecoind getbalance
0.79439999

Code: Select all

C:\nmc>namecoind listaccounts
{
    "" : -0.21950000,
    "BitcoinSuite" : 0.00000000,
    "NamecoinJ" : 0.00000000,
    "faucet.yepcorp.com" : 1.16190000,
    "mining.bitcoin.cz" : 0.02500000,
    "test" : 0.00699999
}
there is still discrepancy about.. 0.97439999 - 0.79439999 = 0.18 ..

i wonder if anyone else has similar experience?

khal
Site Admin
Posts: 708
Joined: Mon May 09, 2011 5:09 pm
os: linux

Re: 'getbalance' does not match sum of 'listaccounts'

Post by khal »

I've a diff also, of 7.76NMC... (getbalance is the fewer value)
NamecoinID: id/khal
GPG : 9CC5B92E965D69A9
NMC: N1KHAL5C1CRzy58NdJwp1tbLze3XrkFxx9
BTC: 1KHAL8bUjnkMRMg9yd2dNrYnJgZGH8Nj6T

Register Namecoin domains with BTC
My bitcoin Identity - Send messages to bitcoin users
Charity Ad - Make a good deed without paying a cent

praz
Posts: 10
Joined: Tue Dec 20, 2011 6:15 am
os: windows

Re: 'getbalance' does not match sum of 'listaccounts'

Post by praz »

so which one is the real balance? .. and since namecoin is based on bitcoin.. bitcoin may have the same bug too..

Post Reply