From a565915d08e610c005105e108439407bd0e70511 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Sun, 13 Jan 2019 21:47:18 +0900 Subject: [PATCH] bitcoind: allow "getblock" to fail for txout lookup. Apparently on pruned nodes it sometimes gives exit status 1? --- lightningd/bitcoind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/bitcoind.c b/lightningd/bitcoind.c index 6a3b986dd..bbf705729 100644 --- a/lightningd/bitcoind.c +++ b/lightningd/bitcoind.c @@ -675,7 +675,7 @@ static bool process_getblockhash_for_txout(struct bitcoin_cli *bcli) /* Strip the newline at the end of the previous output */ blockhash = tal_strndup(NULL, bcli->output, bcli->output_bytes-1); - start_bitcoin_cli(bcli->bitcoind, NULL, process_getblock, false, + start_bitcoin_cli(bcli->bitcoind, NULL, process_getblock, true, BITCOIND_LOW_PRIO, cb, go, "getblock", take(blockhash), NULL);