mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
bcli: print error message in debug log for broadcast failures
This commit is contained in:
committed by
Christian Decker
parent
47d9ff88df
commit
6030d0542a
@@ -595,8 +595,12 @@ static struct command_result *process_sendrawtransaction(struct bitcoin_cli *bcl
|
|||||||
|
|
||||||
/* This is useful for functional tests. */
|
/* This is useful for functional tests. */
|
||||||
if (bcli->exitstatus)
|
if (bcli->exitstatus)
|
||||||
plugin_log(bcli->cmd->plugin, LOG_DBG, "sendrawtx exit %i (%s)",
|
plugin_log(bcli->cmd->plugin, LOG_DBG,
|
||||||
*bcli->exitstatus, bcli_args(bcli));
|
"sendrawtx exit %i (%s) %.*s",
|
||||||
|
*bcli->exitstatus, bcli_args(bcli),
|
||||||
|
*bcli->exitstatus ?
|
||||||
|
(u32)bcli->output_bytes-1 : 0,
|
||||||
|
bcli->output);
|
||||||
|
|
||||||
response = jsonrpc_stream_success(bcli->cmd);
|
response = jsonrpc_stream_success(bcli->cmd);
|
||||||
json_add_bool(response, "success", *bcli->exitstatus == 0);
|
json_add_bool(response, "success", *bcli->exitstatus == 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user