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
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7
3 changed files with 41 additions and 23 deletions

@ -278,15 +278,20 @@ out:
return
}
if confDetails != nil {
err := b.txConfNotifier.UpdateConfDetails(
// 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 = b.txConfNotifier.UpdateConfDetails(
*msg.TxID, msg.ConfID,
confDetails,
)
if err != nil {
chainntnfs.Log.Error(err)
}
}
}()
case *blockEpochRegistration:

@ -348,7 +348,13 @@ out:
return
}
if confDetails != nil {
// 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 = b.txConfNotifier.UpdateConfDetails(
*msg.TxID, msg.ConfID,
confDetails,
@ -356,7 +362,6 @@ out:
if err != nil {
chainntnfs.Log.Error(err)
}
}
}()
case *blockEpochRegistration:

@ -353,14 +353,22 @@ out:
chainntnfs.Log.Error(err)
}
if confDetails != nil {
err := n.txConfNotifier.UpdateConfDetails(
// 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 {
return
}