Merge pull request #9237 from yyforyongyu/fix-btcdnotify-config
chainntnfs/btcdnotify: remove redundant config params re-assignment
This commit is contained in:
1 file changed
-5
@@ -129,11 +129,6 @@ func New(config *rpcclient.ConnConfig, chainParams *chaincfg.Params,
|
|||||||
quit: make(chan struct{}),
|
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{
|
ntfnCallbacks := &rpcclient.NotificationHandlers{
|
||||||
OnBlockConnected: notifier.onBlockConnected,
|
OnBlockConnected: notifier.onBlockConnected,
|
||||||
OnBlockDisconnected: notifier.onBlockDisconnected,
|
OnBlockDisconnected: notifier.onBlockDisconnected,
|
||||||
|
|||||||
Reference in new issue
Block a user