2022-03-10 11:32:32 +01:00
|
|
|
//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"
|
|
|
|
)
|
|
|
|
|
2020-10-09 13:35:00 +02:00
|
|
|
// 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) (
|
2020-09-02 21:15:04 +02:00
|
|
|
*BitcoindBackendConfig, func() error, error) {
|
2019-07-11 13:51:22 +02:00
|
|
|
|
2020-10-09 13:35:00 +02:00
|
|
|
extraArgs := []string{
|
2019-08-28 15:41:59 +02:00
|
|
|
"-debug",
|
2019-07-11 13:51:22 +02:00
|
|
|
"-regtest",
|
|
|
|
"-txindex",
|
|
|
|
"-disablewallet",
|
|
|
|
}
|
|
|
|
|
2022-03-10 11:32:32 +01:00
|
|
|
return newBackend(miner, netParams, extraArgs, false)
|
2019-07-11 13:51:22 +02:00
|
|
|
}
|