mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
test: mine enough blocks to active CSV+segwit in integration tests
As we’re switching to a more up to date btcd branch that properly guards the activation of the soft-forks we rely on, we’ll also need to ensure the two soft-forks have activated.
This commit is contained in:
parent
ad76899a57
commit
fb3bc04d65
@ -1446,6 +1446,13 @@ func TestLightningNetworkDaemon(t *testing.T) {
|
|||||||
ht.Fatalf("unable to request transaction notifications: %v", err)
|
ht.Fatalf("unable to request transaction notifications: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Next mine enough blocks in order for segwit and the CSV package
|
||||||
|
// soft-fork to activate on SimNet.
|
||||||
|
numBlocks := chaincfg.SimNetParams.MinerConfirmationWindow * 2
|
||||||
|
if _, err := btcdHarness.Node.Generate(numBlocks); err != nil {
|
||||||
|
ht.Fatalf("unable to generate blocks: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
// With the btcd harness created, we can now complete the
|
// With the btcd harness created, we can now complete the
|
||||||
// initialization of the network. args - list of lnd arguments,
|
// initialization of the network. args - list of lnd arguments,
|
||||||
// example: "--debuglevel=debug"
|
// example: "--debuglevel=debug"
|
||||||
|
Loading…
Reference in New Issue
Block a user