Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: smooth on June 01, 2011, 08:41:49 AM



Title: messed up account balance with generate transactions?
Post by: smooth on June 01, 2011, 08:41:49 AM
Eligius uses generate transactions to distribute pool coins.  I got a few, to an address I have assigned to "eligius" in my wallet, but they are showing up in the "" account.  Is this the expected/intended behavior?

    {
        "account" : "",                    <---- ??????
        "category" : "generate",
        "amount" : 1.27329935,
        "confirmations" : 205,
        "txid" : "58cc0cf1877e8153b6b53b32e6c63bc486ae19a6f275e3dfe200f5d15d49d9af",
        "time" : 1306806056
    }

{ confirm with block explorer that this transaction went to 1B9hLQDUdpL29A2EMbCfx6fY2qpGKww9t }

$ ./bitcoin-0.3.21/bin/64/bitcoind getaccount 1B9hLQDUdpL29A2EMbCfx6fY2qpGKww9t
eligius
$ ./bitcoin-0.3.21/bin/64/bitcoind listaccounts
    "eligius" : 0.00000000,


Title: Re: messed up account balance with generate transactions?
Post by: CydeWeys on June 01, 2011, 01:21:55 PM
The default client doesn't handle lots of things very well.  In addition to what you pointed out, "generate" transactions don't count as received, so if you do something like listreceivedbyaddress, it won't show up in there.  Also, accounts balances won't show up correctly (they don't take generated coins into account), so the only way to see your proper balance is with getinfo.