lnwallet: mine enough blocks to activate CSV+segwit in reservation tests

This commit is contained in:
Olaoluwa Osuntokun 2017-01-05 13:20:29 -08:00
parent fb3bc04d65
commit 5957725975
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -1283,6 +1283,13 @@ func TestLightningWallet(t *testing.T) {
t.Fatalf("unable to set up mining node: %v", err)
}
// Next mine enough blocks in order for segwit and the CSV package
// soft-fork to activate on SimNet.
numBlocks := netParams.MinerConfirmationWindow * 2
if _, err := miningNode.Node.Generate(numBlocks); err != nil {
t.Fatalf("unable to generate blocks: %v", err)
}
rpcConfig := miningNode.RPCConfig()
chainNotifier, err := btcdnotify.New(&rpcConfig)