chainntfns/btcdnotify: log error when unable to query for transaction

This commit is contained in:
Olaoluwa Osuntokun 2017-05-04 15:09:19 -07:00
parent d5af509435
commit a9b8da7c3f
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -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
}