diff --git a/lntest/bitcoind.go b/lntest/bitcoind.go index 3eb07a5e..e730b707 100644 --- a/lntest/bitcoind.go +++ b/lntest/bitcoind.go @@ -1,4 +1,5 @@ // +build bitcoind +// +build !notxindex package lntest diff --git a/lntest/bitcoind_notxindex.go b/lntest/bitcoind_notxindex.go new file mode 100644 index 00000000..1d565d8c --- /dev/null +++ b/lntest/bitcoind_notxindex.go @@ -0,0 +1,22 @@ +// +build bitcoind +// +build notxindex + +package lntest + +import ( + "github.com/btcsuite/btcd/chaincfg" +) + +// NewBackend starts a bitcoind node without the txindex enabled and returns a +// BitoindBackendConfig for that node. +func NewBackend(miner string, netParams *chaincfg.Params) ( + *BitcoindBackendConfig, func() error, error) { + + extraArgs := []string{ + "-debug", + "-regtest", + "-disablewallet", + } + + return newBackend(miner, netParams, extraArgs) +}