chainntnfs/btcdnotify: remove redundant config params re-assignment

This commit is contained in:
yyforyongyu 2024-10-30 02:01:14 +08:00
parent 4778b146cc
commit 611405f59c
No known key found for this signature in database
GPG key ID: 9BCD95C4FF296868

View file

@ -129,11 +129,6 @@ func New(config *rpcclient.ConnConfig, chainParams *chaincfg.Params,
quit: make(chan struct{}),
}
// Disable connecting to btcd within the rpcclient.New method. We
// defer establishing the connection to our .Start() method.
config.DisableConnectOnNew = true
config.DisableAutoReconnect = false
ntfnCallbacks := &rpcclient.NotificationHandlers{
OnBlockConnected: notifier.onBlockConnected,
OnBlockDisconnected: notifier.onBlockDisconnected,