Update for new btcws TxMinedNtfn API.

This commit is contained in:
Josh Rickmar 2013-11-25 12:54:49 -05:00
parent e3e8a06661
commit a246fc91d6

View file

@ -527,7 +527,7 @@ func NtfnTxMined(n btcws.Notification) {
log.Errorf("%v handler: unexpected type", n.Id()) log.Errorf("%v handler: unexpected type", n.Id())
return return
} }
hash, err := btcwire.NewShaHashFromStr(tmn.Hash) txid, err := btcwire.NewShaHashFromStr(tmn.TxID)
if err != nil { if err != nil {
log.Errorf("%v handler: invalid hash string", n.Id()) log.Errorf("%v handler: invalid hash string", n.Id())
return return
@ -535,7 +535,7 @@ func NtfnTxMined(n btcws.Notification) {
// Remove mined transaction from pool. // Remove mined transaction from pool.
UnminedTxs.Lock() UnminedTxs.Lock()
delete(UnminedTxs.m, TXID(hash[:])) delete(UnminedTxs.m, TXID(txid[:]))
UnminedTxs.Unlock() UnminedTxs.Unlock()
} }