lnd.xprv/lntest/bitcoind.go

24 lines
469 B
Go
Raw Normal View History

2019-07-11 14:51:22 +03:00
// +build bitcoind
// +build !notxindex
2019-07-11 14:51:22 +03: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 14:51:22 +03:00
func NewBackend(miner string, netParams *chaincfg.Params) (
*BitcoindBackendConfig, func() error, error) {
2019-07-11 14:51:22 +03:00
extraArgs := []string{
"-debug",
2019-07-11 14:51:22 +03:00
"-regtest",
"-txindex",
"-disablewallet",
}
return newBackend(miner, netParams, extraArgs)
2019-07-11 14:51:22 +03:00
}