chainntnfs: only log confirmation notification registration once
This commit is contained in:
parent
40d63d5b4e
commit
e51df8d810
@ -601,9 +601,6 @@ func (n *TxNotifier) RegisterConf(txid *chainhash.Hash, pkScript []byte,
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.Infof("New confirmation subscription: %v, num_confs=%v ",
|
|
||||||
ntfn.ConfRequest, numConfs)
|
|
||||||
|
|
||||||
// Before proceeding to register the notification, we'll query our
|
// Before proceeding to register the notification, we'll query our
|
||||||
// height hint cache to determine whether a better one exists.
|
// height hint cache to determine whether a better one exists.
|
||||||
//
|
//
|
||||||
@ -622,12 +619,13 @@ func (n *TxNotifier) RegisterConf(txid *chainhash.Hash, pkScript []byte,
|
|||||||
ntfn.ConfRequest, err)
|
ntfn.ConfRequest, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log.Infof("New confirmation subscription: conf_id=%d, %v, "+
|
||||||
|
"num_confs=%v height_hint=%d", ntfn.ConfID, ntfn.ConfRequest,
|
||||||
|
numConfs, startHeight)
|
||||||
|
|
||||||
n.Lock()
|
n.Lock()
|
||||||
defer n.Unlock()
|
defer n.Unlock()
|
||||||
|
|
||||||
Log.Infof("New confirmation subscription: conf_id=%d, %v, "+
|
|
||||||
"height_hint=%d", ntfn.ConfID, ntfn.ConfRequest, startHeight)
|
|
||||||
|
|
||||||
confSet, ok := n.confNotifications[ntfn.ConfRequest]
|
confSet, ok := n.confNotifications[ntfn.ConfRequest]
|
||||||
if !ok {
|
if !ok {
|
||||||
// If this is the first registration for this request, construct
|
// If this is the first registration for this request, construct
|
||||||
|
Loading…
Reference in New Issue
Block a user