mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
bitcoind: allow "getblock" to fail for txout lookup.
Apparently on pruned nodes it sometimes gives exit status 1?
This commit is contained in:
committed by
Rusty Russell
parent
0ba547ee10
commit
a565915d08
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user