1
0
Fork 0
mirror of https://github.com/lightningnetwork/lnd.git synced 2025-03-21 14:02:26 +01:00
lnd/lntest/bitcoind.go

24 lines
469 B
Go
Raw Normal View History

2019-07-11 13:51:22 +02:00
// +build bitcoind
// +build !notxindex
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)
2019-07-11 13:51:22 +02:00
}