Skip to content

Commit 06f1ef4

Browse files
authored
Merge pull request lightningnetwork#9720 from ziggie1984/add-btcd-notify-logs
chainntnfs: increase logging of the subsystems
2 parents 014706c + 8dde8cf commit 06f1ef4

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

chainntnfs/bitcoindnotify/bitcoind.go

+4
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ func (b *BitcoindNotifier) Started() bool {
171171
}
172172

173173
func (b *BitcoindNotifier) startNotifier() error {
174+
chainntnfs.Log.Infof("bitcoind notifier starting...")
175+
174176
// Connect to bitcoind, and register for notifications on connected,
175177
// and disconnected blocks.
176178
if err := b.chainConn.Start(); err != nil {
@@ -207,6 +209,8 @@ func (b *BitcoindNotifier) startNotifier() error {
207209
// startup.
208210
atomic.StoreInt32(&b.active, 1)
209211

212+
chainntnfs.Log.Debugf("bitcoind notifier started")
213+
210214
return nil
211215
}
212216

chainntnfs/btcdnotify/btcd.go

+6
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,11 @@ func (b *BtcdNotifier) Stop() error {
204204
return nil
205205
}
206206

207+
// startNotifier is the main starting point for the BtcdNotifier. It connects
208+
// to btcd and start the main dispatcher goroutine.
207209
func (b *BtcdNotifier) startNotifier() error {
210+
chainntnfs.Log.Infof("btcd notifier starting...")
211+
208212
// Start our concurrent queues before starting the chain connection, to
209213
// ensure onBlockConnected and onRedeemingTx callbacks won't be
210214
// blocked.
@@ -257,6 +261,8 @@ func (b *BtcdNotifier) startNotifier() error {
257261
// startup.
258262
atomic.StoreInt32(&b.active, 1)
259263

264+
chainntnfs.Log.Debugf("btcd notifier started")
265+
260266
return nil
261267
}
262268

chainntnfs/neutrinonotify/neutrino.go

+4
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ func (n *NeutrinoNotifier) Started() bool {
168168
}
169169

170170
func (n *NeutrinoNotifier) startNotifier() error {
171+
chainntnfs.Log.Infof("neutrino notifier starting...")
172+
171173
// Start our concurrent queues before starting the rescan, to ensure
172174
// onFilteredBlockConnected and onRelavantTx callbacks won't be
173175
// blocked.
@@ -234,6 +236,8 @@ func (n *NeutrinoNotifier) startNotifier() error {
234236
// startup.
235237
atomic.StoreInt32(&n.active, 1)
236238

239+
chainntnfs.Log.Debugf("neutrino notifier started")
240+
237241
return nil
238242
}
239243

0 commit comments

Comments
 (0)