public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
* [Bitcoin-development] Listing of generation transactions
@ 2011-07-15  0:48 Stéphane Gimenez
  2011-07-15 16:08 ` Stéphane Gimenez
  0 siblings, 1 reply; 2+ messages in thread
From: Stéphane Gimenez @ 2011-07-15  0:48 UTC (permalink / raw)
  To: Bitcoin Dev

Hello all,

After reading pull/417, I'm noticing that generation transactions
always appear twice in listtransaction output:

 * one item with account "" and category "generate"/"imature"/"orphan",
   plus some transaction data.

 * one with the account associated to the destination address and
   category "received", plus the same transaction data.

Both items have the same txid.

Is this the intended behavior or should the second be removed?

Also, why is account "" enforced in the first item?
(Wrong assumption that coinbase is always built from the client
itself?).

Last, it happens that {list,get}receivedby{address,account} commands
never list or take into account generation transactions. I'm not sure
how the help message associated to those commands should be
understood. As a user, I would assume that generated transaction are
included in these listings/amounts.

Is all this related with some issues encountered by E-wallet
providers?

Thanks,
Stéphane



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bitcoin-development] Listing of generation transactions
  2011-07-15  0:48 [Bitcoin-development] Listing of generation transactions Stéphane Gimenez
@ 2011-07-15 16:08 ` Stéphane Gimenez
  0 siblings, 0 replies; 2+ messages in thread
From: Stéphane Gimenez @ 2011-07-15 16:08 UTC (permalink / raw)
  To: Bitcoin Dev

> After reading pull/417, I'm noticing that generation transactions
> always appear twice in listtransaction output:
>
>  * one item with account "" and category "generate"/"imature"/"orphan",
>    plus some transaction data.
>
>  * one with the account associated to the destination address and
>    category "received", plus the same transaction data.

Sorry! the item duplication was due to the pull. (very stupid me)

The issue with account "" remains.

For coinbase transactions, we may list one "generated" item per txout
that corresponds to an owned address. Accounts would be associated
accordingly, in the same way as for usual "received" amounts. Account
balances would also take into account these generated amounts in the
obvious way.

Would that be ok? I think few people rely on these specific details,
and they would be happy with such a change. Moreover, this would
actually simplify the code a little bit.


> Last, it happens that {list,get}receivedby{address,account} commands
> never list or take into account generation transactions. I'm not sure
> how the help message associated to those commands should be
> understood. As a user, I would assume that generated transaction are
> included in these listings/amounts.
>
> Is all this related with some issues encountered by E-wallet
> providers?



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-15 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-15  0:48 [Bitcoin-development] Listing of generation transactions Stéphane Gimenez
2011-07-15 16:08 ` Stéphane Gimenez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox