2019-07-11 14:51:22 +03:00
|
|
|
// +build bitcoind
|
2020-10-09 14:35:04 +03:00
|
|
|
// +build !notxindex
|
2019-07-11 14:51:22 +03:00
|
|
|
|
|
|
|
package lntest
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/btcsuite/btcd/chaincfg"
|
|
|
|
)
|
|
|
|
|
2020-10-09 14:35:00 +03:00
|
|
|
// NewBackend starts a bitcoind node with the txindex enabled and returns a
|
|
|
|
// BitcoindBackendConfig for that node.
|
2019-07-11 14:51:22 +03:00
|
|
|
func NewBackend(miner string, netParams *chaincfg.Params) (
|
2020-09-02 22:15:04 +03:00
|
|
|
*BitcoindBackendConfig, func() error, error) {
|
2019-07-11 14:51:22 +03:00
|
|
|
|
2020-10-09 14:35:00 +03:00
|
|
|
extraArgs := []string{
|
2019-08-28 16:41:59 +03:00
|
|
|
"-debug",
|
2019-07-11 14:51:22 +03:00
|
|
|
"-regtest",
|
|
|
|
"-txindex",
|
|
|
|
"-disablewallet",
|
|
|
|
}
|
|
|
|
|
2020-10-09 14:35:00 +03:00
|
|
|
return newBackend(miner, netParams, extraArgs)
|
2019-07-11 14:51:22 +03:00
|
|
|
}
|