lnd/lntest/bitcoind.go

24 lines
527 B
Go
Raw Normal View History

//go:build bitcoind && !notxindex && !rpcpolling
// +build bitcoind,!notxindex,!rpcpolling
2019-07-11 13:51:22 +02:00
package lntest
import (
"github.com/btcsuite/btcd/chaincfg"
)
// NewBackend starts a bitcoind node with the txindex enabled and returns a
// BitcoindBackendConfig for that node.
2019-07-11 13:51:22 +02:00
func NewBackend(miner string, netParams *chaincfg.Params) (
*BitcoindBackendConfig, func() error, error) {
2019-07-11 13:51:22 +02:00
extraArgs := []string{
"-debug",
2019-07-11 13:51:22 +02:00
"-regtest",
"-txindex",
"-disablewallet",
}
return newBackend(miner, netParams, extraArgs, false)
2019-07-11 13:51:22 +02:00
}