multi: new bitcoind rpcpolling backend for itests

This commit is contained in:
Elle Mouton
2022-03-10 10:32:32 +00:00
parent 7509af1a70
commit e789107e1f
7 changed files with 62 additions and 18 deletions

View File

@@ -0,0 +1,23 @@
//go:build bitcoind && rpcpolling
// +build bitcoind,rpcpolling
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",
"-txindex",
"-disablewallet",
}
return newBackend(miner, netParams, extraArgs, true)
}