lnd_test: use RegTest instead of SimNet during integration tests

This commit is contained in:
Johan T. Halseth committed 2019-09-02 09:37:23 +02:00
1 parent 81cb3cb739
commit 35f3544111
3 files changed
+16 -7

No files matched your search

+3 -2
View File
@@ -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)