lbcwallet/txstore
Josh Rickmar 6597d789b7 Avoid slice out-of-bounds indexing panic.
The gettransaction handler was attempting to lookup the "sent-to"
address of an outgoing transaction from the transaction store (as a
wallet credit).  This is the incorrect address when sending to an
address controlled by another wallet, and panics when there are no
credits (for example, sending to another wallet without any change
address).  Instead, use the first non-change output address is used as
the address of the "send" result.

This fixes the panic reported when debugging issue #91.

While here, fix the category strings used for wallet credits to
support immature and generate (the categories for coinbase outputs).
2014-06-02 11:56:38 -05:00
..
doc.go go fmt. 2014-05-20 20:09:33 -05:00
fixedIO_test.go Rename tx package to txstore. 2014-05-08 14:51:33 -05:00
json.go Avoid slice out-of-bounds indexing panic. 2014-06-02 11:56:38 -05:00
serialization.go go fmt. 2014-05-30 12:46:41 -05:00
tx.go Updates for btcutil and btcscript's btcnet conversion. 2014-05-27 17:49:36 -05:00
tx_test.go Updates for btcutil and btcscript's btcnet conversion. 2014-05-27 17:49:36 -05:00