From d054fef0f0c50e2ae6b385ce91b6c481f054b94c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 13 May 2019 14:47:18 +0930 Subject: [PATCH] pytest: fix test_bech32_funding We try to look up the funding tx, but it's already spent that to fund the channel, so we need txindex if this test is to work reliably. It's not clear to me why this *ever* worked, but if fails on my new ThreadRipper build machine with valgrind: > wallettx = l1.bitcoin.rpc.getrawtransaction(wallettxid, True) ... E bitcoin.rpc.InvalidAddressOrKeyError: {'code': -5, 'message': 'No such mempool transaction. Use -txindex to enable blockchain transaction queries. Use gettransaction for wallet transactions.'} /usr/lib/python3/dist-packages/bitcoin/rpc.py:231: InvalidAddressOrKeyError Signed-off-by: Rusty Russell --- tests/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/utils.py b/tests/utils.py index 1032d8700..5a382c3a0 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -290,6 +290,7 @@ class BitcoinD(TailableProc): '-server', '-logtimestamps', '-nolisten', + '-txindex', ] # For up to and including 0.16.1, this needs to be in main section. BITCOIND_CONFIG['rpcport'] = rpcport