2022-03-10 11:32:32 +01:00
|
|
|
//go:build bitcoind && notxindex && !rpcpolling
|
|
|
|
// +build bitcoind,notxindex,!rpcpolling
|
2020-10-09 13:35:04 +02:00
|
|
|
|
|
|
|
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",
|
|
|
|
}
|
|
|
|
|
2022-03-10 11:32:32 +01:00
|
|
|
return newBackend(miner, netParams, extraArgs, false)
|
2020-10-09 13:35:04 +02:00
|
|
|
}
|