From 503744de7156745ba444998efb4af614af7e090e 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 da0bbca87449..f56068e71c56 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);