bitcoind.go 527 B

123456789101112131415161718192021222324
  1. //go:build bitcoind && !notxindex && !rpcpolling
  2. // +build bitcoind,!notxindex,!rpcpolling
  3. package lntest
  4. import (
  5. "github.com/btcsuite/btcd/chaincfg"
  6. )
  7. // NewBackend starts a bitcoind node with the txindex enabled and returns a
  8. // BitcoindBackendConfig for that node.
  9. func NewBackend(miner string, netParams *chaincfg.Params) (
  10. *BitcoindBackendConfig, func() error, error) {
  11. extraArgs := []string{
  12. "-debug",
  13. "-regtest",
  14. "-txindex",
  15. "-disablewallet",
  16. }
  17. return newBackend(miner, netParams, extraArgs, false)
  18. }