From a9b8da7c3f7a4e878916c7e38f1bb993c9064028 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 4 May 2017 15:09:19 -0700 Subject: [PATCH] chainntfns/btcdnotify: log error when unable to query for transaction --- chainntnfs/btcdnotify/btcd.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chainntnfs/btcdnotify/btcd.go b/chainntnfs/btcdnotify/btcd.go index a9dc2e504..bae9c1c97 100644 --- a/chainntnfs/btcdnotify/btcd.go +++ b/chainntnfs/btcdnotify/btcd.go @@ -406,6 +406,10 @@ func (b *BtcdNotifier) attemptHistoricalDispatch(msg *confirmationsNotification, // then we may be able to dispatch it immediately. tx, err := b.chainConn.GetRawTransactionVerbose(msg.txid) if err != nil || tx == nil || tx.BlockHash == "" { + if err != nil { + chainntnfs.Log.Errorf("unable to query for txid(%v): %v", + msg.txid, err) + } return false }