chainntnfs/bitcoind+btcd+neutrino: pass nil conf details

This commit is contained in:
Conner Fromknecht
2018-08-24 19:35:17 -07:00
parent 1babec971f
commit a1756b0b1b
3 changed files with 41 additions and 23 deletions

View File

@@ -353,14 +353,22 @@ out:
chainntnfs.Log.Error(err)
}
// If the historical dispatch finished
// without error, we will invoke
// UpdateConfDetails even if none were
// found. This allows the notifier to
// begin safely updating the height hint
// cache at tip, since any pending
// rescans have now completed.
err = n.txConfNotifier.UpdateConfDetails(
*msg.TxID, msg.ConfID,
confDetails,
)
if err != nil {
chainntnfs.Log.Error(err)
}
if confDetails != nil {
err := n.txConfNotifier.UpdateConfDetails(
*msg.TxID, msg.ConfID,
confDetails,
)
if err != nil {
chainntnfs.Log.Error(err)
}
return
}