diff --git a/lnd_test.go b/lnd_test.go index e014ee35..fa80bc83 100644 --- a/lnd_test.go +++ b/lnd_test.go @@ -13360,10 +13360,10 @@ func TestLightningNetworkDaemon(t *testing.T) { } }() - // Start a btcd chain backend. - chainBackend, cleanUp, err := lntest.NewBtcdBackend(miner.P2PAddress()) + // Start a chain backend. + chainBackend, cleanUp, err := lntest.NewBackend(miner.P2PAddress()) if err != nil { - ht.Fatalf("unable to start btcd: %v", err) + ht.Fatalf("unable to start backend: %v", err) } defer cleanUp() diff --git a/lntest/btcd.go b/lntest/btcd.go index 84cd6830..81b22236 100644 --- a/lntest/btcd.go +++ b/lntest/btcd.go @@ -1,3 +1,5 @@ +// +build btcd + package lntest import ( @@ -57,10 +59,10 @@ func (b BtcdBackendConfig) DisconnectMiner() error { return b.harness.Node.Node(btcjson.NRemove, b.minerAddr, &perm) } -// NewBtcdBackend starts a new rpctest.Harness and returns a BtcdBackendConfig -// for that node. miner should be set to the P2P address of the miner to -// connect to. -func NewBtcdBackend(miner string) (*BtcdBackendConfig, func(), error) { +// NewBackend starts a new rpctest.Harness and returns a BtcdBackendConfig for +// that node. miner should be set to the P2P address of the miner to connect +// to. +func NewBackend(miner string) (*BtcdBackendConfig, func(), error) { args := []string{ "--rejectnonstd", "--txindex",