From eb5e32f22167fadbe4cf8faa2fb80ee2419722d1 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Tue, 14 Dec 2021 03:11:05 +0800 Subject: [PATCH] chainntnfs: add more verbose logs for txnotifier --- chainntnfs/txnotifier.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chainntnfs/txnotifier.go b/chainntnfs/txnotifier.go index 7a328e77c..b7fc638af 100644 --- a/chainntnfs/txnotifier.go +++ b/chainntnfs/txnotifier.go @@ -614,8 +614,8 @@ func (n *TxNotifier) RegisterConf(txid *chainhash.Hash, pkScript []byte, if err == nil { if hint > startHeight { Log.Debugf("Using height hint %d retrieved from cache "+ - "for %v instead of %d", hint, ntfn.ConfRequest, - startHeight) + "for %v instead of %d for conf subscription", + hint, ntfn.ConfRequest, startHeight) startHeight = hint } } else if err != ErrConfirmHintNotFound { @@ -1009,8 +1009,8 @@ func (n *TxNotifier) RegisterSpend(outpoint *wire.OutPoint, pkScript []byte, if err == nil { if hint > startHeight { Log.Debugf("Using height hint %d retrieved from cache "+ - "for %v instead of %d", hint, ntfn.SpendRequest, - startHeight) + "for %v instead of %d for spend subscription", + hint, ntfn.SpendRequest, startHeight) startHeight = hint } } else if err != ErrSpendHintNotFound {