Branch: refs/heads/master
Home: https://github.com/conformal/btcwallet
Commit: e39fa32487fb1aecd4a7b0e70c54ded685efcf0b
https://github.com/conformal/btcwallet/commit/e39fa32487fb1aecd4a7b0e70c54ded685efcf0b
Author: Josh Rickmar <[email protected]>
Date: 2014-05-06 (Tue, 06 May 2014)
Changed paths:
M account.go
M acctmgr.go
M createtx.go
M rpcserver.go
M tx/json.go
M tx/tx.go
Log Message:
-----------
Fix listtransactions category for coinbase outputs.
The category for a received coinbase output should be "generate" for a
mature coinbase (one that has reached btcchain.CoinbaseMaturity
confirmations), or "immature" if the required number of confirmations
has not been reached yet. New Confirmed and Confirmations methods
have been added to the transaction store's TxRecord type to check if
the required number of confirmations have been met for coinbase
outputs.
While here, update the main package to use the new TxRecord methods,
rather than duplicating the confirmation checking code in two places.