From 5957725975a4ad49d89125dec9ba02189f7bbca3 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 5 Jan 2017 13:20:29 -0800 Subject: [PATCH] lnwallet: mine enough blocks to activate CSV+segwit in reservation tests --- lnwallet/interface_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lnwallet/interface_test.go b/lnwallet/interface_test.go index 38c28c4e0..5964c2c18 100644 --- a/lnwallet/interface_test.go +++ b/lnwallet/interface_test.go @@ -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)