lnd_test: use RegTest instead of SimNet during integration tests
This commit is contained in:
3 files changed
+16
-7
No files matched your search
+3
-2
@@ -67,7 +67,9 @@ func (b BtcdBackendConfig) Name() string {
|
||||
// NewBackend starts a new rpctest.Harness and returns a BtcdBackendConfig for
|
||||
// that node. miner should be set to the P2P address of the miner to connect
|
||||
// to.
|
||||
func NewBackend(miner string) (*BtcdBackendConfig, func(), error) {
|
||||
func NewBackend(miner string, netParams *chaincfg.Params) (
|
||||
*BtcdBackendConfig, func(), error) {
|
||||
|
||||
args := []string{
|
||||
"--rejectnonstd",
|
||||
"--txindex",
|
||||
@@ -76,7 +78,6 @@ func NewBackend(miner string) (*BtcdBackendConfig, func(), error) {
|
||||
"--logdir=" + logDir,
|
||||
"--connect=" + miner,
|
||||
}
|
||||
netParams := &chaincfg.SimNetParams
|
||||
chainBackend, err := rpctest.New(netParams, nil, args)
|
||||
if err != nil {
|
||||
return nil, nil, fmt.Errorf("unable to create btcd node: %v", err)
|
||||
|
||||
Reference in new issue
Block a user