-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multi: new bitcoind rpcpolling backend for itests
- Loading branch information
1 parent
026ee44
commit 2b9790f
Showing
7 changed files
with
62 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
} |