From 742885c95e264392c5b6716dff22b69f9dabf81e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 1 Mar 2018 10:43:30 +1030 Subject: [PATCH] test_lightning.py: reduce 121 to 101 blocks, remove segwit comment. FWIW, the tests without valgrind take 662 seconds before we reduced the number of blocks, and only 648 seconds now. Signed-off-by: Rusty Russell --- tests/test_lightningd.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index ddb47c6f4..35c4a3f01 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -58,10 +58,9 @@ def setupBitcoind(directory): " is needed, current version is {}".format(info['version'])) info = bitcoind.rpc.getblockchaininfo() - # Make sure we have segwit and some funds - if info['blocks'] < 121: - logging.debug("SegWit not active, generating some more blocks") - bitcoind.generate_block(121 - info['blocks']) + # Make sure we have some spendable funds + if info['blocks'] < 101: + bitcoind.generate_block(101 - info['blocks']) elif bitcoind.rpc.getwalletinfo()['balance'] < 1: logging.debug("Insufficient balance, generating 1 block") bitcoind.generate_block(1)