diff --git a/chainntnfs/interface_test.go b/chainntnfs/interface_test.go index 67c9e9db..3a266707 100644 --- a/chainntnfs/interface_test.go +++ b/chainntnfs/interface_test.go @@ -1777,14 +1777,16 @@ func TestInterfaces(t *testing.T) { ) newNotifier = func() (chainntnfs.TestChainNotifier, error) { return bitcoindnotify.New( - bitcoindConn, hintCache, hintCache, + bitcoindConn, chainntnfs.NetParams, + hintCache, hintCache, ), nil } case "btcd": newNotifier = func() (chainntnfs.TestChainNotifier, error) { return btcdnotify.New( - &rpcConfig, hintCache, hintCache, + &rpcConfig, chainntnfs.NetParams, + hintCache, hintCache, ) } @@ -1796,7 +1798,7 @@ func TestInterfaces(t *testing.T) { newNotifier = func() (chainntnfs.TestChainNotifier, error) { return neutrinonotify.New( spvNode, hintCache, hintCache, - ) + ), nil } } diff --git a/chainregistry.go b/chainregistry.go index 56137b73..1d0c84da 100644 --- a/chainregistry.go +++ b/chainregistry.go @@ -256,12 +256,7 @@ func newChainControlFromConfig(cfg *config, chanDB *channeldb.DB, // Next we'll create the instances of the ChainNotifier and // FilteredChainView interface which is backed by the neutrino // light client. - cc.chainNotifier, err = neutrinonotify.New( - svc, hintCache, hintCache, - ) - if err != nil { - return nil, nil, err - } + cc.chainNotifier = neutrinonotify.New(svc, hintCache, hintCache) cc.chainView, err = chainview.NewCfFilteredChainView(svc) if err != nil { return nil, nil, err @@ -336,7 +331,7 @@ func newChainControlFromConfig(cfg *config, chanDB *channeldb.DB, } cc.chainNotifier = bitcoindnotify.New( - bitcoindConn, hintCache, hintCache, + bitcoindConn, activeNetParams.Params, hintCache, hintCache, ) cc.chainView = chainview.NewBitcoindFilteredChainView(bitcoindConn) walletConfig.ChainSource = bitcoindConn.NewBitcoindClient() @@ -446,7 +441,7 @@ func newChainControlFromConfig(cfg *config, chanDB *channeldb.DB, DisableAutoReconnect: false, } cc.chainNotifier, err = btcdnotify.New( - rpcConfig, hintCache, hintCache, + rpcConfig, activeNetParams.Params, hintCache, hintCache, ) if err != nil { return nil, nil, err diff --git a/lnwallet/interface_test.go b/lnwallet/interface_test.go index 577c5396..4549a266 100644 --- a/lnwallet/interface_test.go +++ b/lnwallet/interface_test.go @@ -2362,7 +2362,9 @@ func TestLightningWallet(t *testing.T) { if err != nil { t.Fatalf("unable to create height hint cache: %v", err) } - chainNotifier, err := btcdnotify.New(&rpcConfig, hintCache, hintCache) + chainNotifier, err := btcdnotify.New( + &rpcConfig, netParams, hintCache, hintCache, + ) if err != nil { t.Fatalf("unable to create notifier: %v", err) }