mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 06:35:07 +01:00
chainntfns/btcdnotify: log error when unable to query for transaction
This commit is contained in:
parent
d5af509435
commit
a9b8da7c3f
1 changed files with 4 additions and 0 deletions
|
@ -406,6 +406,10 @@ func (b *BtcdNotifier) attemptHistoricalDispatch(msg *confirmationsNotification,
|
||||||
// then we may be able to dispatch it immediately.
|
// then we may be able to dispatch it immediately.
|
||||||
tx, err := b.chainConn.GetRawTransactionVerbose(msg.txid)
|
tx, err := b.chainConn.GetRawTransactionVerbose(msg.txid)
|
||||||
if err != nil || tx == nil || tx.BlockHash == "" {
|
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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue