Skip to content

Commit

Permalink
bitcoind: allow "getblock" to fail for txout lookup.
Browse files Browse the repository at this point in the history
Apparently on pruned nodes it sometimes gives exit status 1?
  • Loading branch information
NicolasDorier authored and rustyrussell committed Jan 15, 2019
1 parent 0ba547e commit a565915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightningd/bitcoind.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a565915

Please sign in to comment.