From a246fc91d6b96d5c2e3f4a30f37bc880fcf5e677 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Mon, 25 Nov 2013 12:54:49 -0500 Subject: [PATCH] Update for new btcws TxMinedNtfn API. --- sockets.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sockets.go b/sockets.go index b389a20..4b45da8 100644 --- a/sockets.go +++ b/sockets.go @@ -527,7 +527,7 @@ func NtfnTxMined(n btcws.Notification) { log.Errorf("%v handler: unexpected type", n.Id()) return } - hash, err := btcwire.NewShaHashFromStr(tmn.Hash) + txid, err := btcwire.NewShaHashFromStr(tmn.TxID) if err != nil { log.Errorf("%v handler: invalid hash string", n.Id()) return @@ -535,7 +535,7 @@ func NtfnTxMined(n btcws.Notification) { // Remove mined transaction from pool. UnminedTxs.Lock() - delete(UnminedTxs.m, TXID(hash[:])) + delete(UnminedTxs.m, TXID(txid[:])) UnminedTxs.Unlock() }