chainntnfs+lntest: fix TestInterfaces
This commit upgrades the test to always use a segwit v0 witness program when creating testing txns.
This commit is contained in:
2 files changed
+26
-9
No files matched your search
@@ -59,6 +59,12 @@ func NewMiner(t *testing.T, netParams *chaincfg.Params, extraArgs []string,
|
||||
t.Fatalf("unable to set up backend node: %v", err)
|
||||
}
|
||||
|
||||
// Next mine enough blocks in order for segwit and the CSV package
|
||||
// soft-fork to activate.
|
||||
numBlocks := netParams.MinerConfirmationWindow*2 + 17
|
||||
_, err = node.Client.Generate(numBlocks)
|
||||
require.NoError(t, err, "failed to generate blocks")
|
||||
|
||||
return node
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user