Branch: refs/heads/master
Home: https://github.com/conformal/btcwallet
Commit: 3b436402e0c260c6d54df7c1bd1c5a12d453d3f6
https://github.com/conformal/btcwallet/commit/3b436402e0c260c6d54df7c1bd1c5a12d453d3f6
Author: Josh Rickmar <[email protected]>
Date: 2014-06-19 (Thu, 19 Jun 2014)
Changed paths:
M txstore/tx.go
Log Message:
-----------
Search unconfirmed txs when finding prev credits.
If a transaction is added that debits from previous transaction
outputs, and those outputs are still unconfirmed, it is possible that
if the credits were not already known (as is the case with
transactions notified after a sendrawtransaction), only mined unspent
transaction outputs would be searched and the unconfirmed unspent
credits would be missed. This results in spent outputs still being
marked unspent.
This change fixes the above by also searching through unconfirmed
transactions when the previous credits must be lookup up, rather than
being pass from an AddDebits call.
Fixes issue #91.