lntest+lnd_test: build flag btcd for BtcdBackendCfg
This commit is contained in:
parent
aec00b1277
commit
8e8bb9ff09
@ -13360,10 +13360,10 @@ func TestLightningNetworkDaemon(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// Start a btcd chain backend.
|
// Start a chain backend.
|
||||||
chainBackend, cleanUp, err := lntest.NewBtcdBackend(miner.P2PAddress())
|
chainBackend, cleanUp, err := lntest.NewBackend(miner.P2PAddress())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ht.Fatalf("unable to start btcd: %v", err)
|
ht.Fatalf("unable to start backend: %v", err)
|
||||||
}
|
}
|
||||||
defer cleanUp()
|
defer cleanUp()
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// +build btcd
|
||||||
|
|
||||||
package lntest
|
package lntest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -57,10 +59,10 @@ func (b BtcdBackendConfig) DisconnectMiner() error {
|
|||||||
return b.harness.Node.Node(btcjson.NRemove, b.minerAddr, &perm)
|
return b.harness.Node.Node(btcjson.NRemove, b.minerAddr, &perm)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewBtcdBackend starts a new rpctest.Harness and returns a BtcdBackendConfig
|
// NewBackend starts a new rpctest.Harness and returns a BtcdBackendConfig for
|
||||||
// for that node. miner should be set to the P2P address of the miner to
|
// that node. miner should be set to the P2P address of the miner to connect
|
||||||
// connect to.
|
// to.
|
||||||
func NewBtcdBackend(miner string) (*BtcdBackendConfig, func(), error) {
|
func NewBackend(miner string) (*BtcdBackendConfig, func(), error) {
|
||||||
args := []string{
|
args := []string{
|
||||||
"--rejectnonstd",
|
"--rejectnonstd",
|
||||||
"--txindex",
|
"--txindex",
|
||||||
|
Loading…
Reference in New Issue
Block a user