We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39b71ef commit 910e79dCopy full SHA for 910e79d
plugins/bcli.c
@@ -16,6 +16,7 @@
16
* This is how many request for each priority level we have.
17
*/
18
#define BITCOIND_MAX_PARALLEL 4
19
+#define RPC_TRANSACTION_ALREADY_IN_CHAIN -27
20
21
enum bitcoind_prio {
22
BITCOIND_LOW_PRIO,
@@ -489,7 +490,10 @@ static struct command_result *process_sendrawtransaction(struct bitcoin_cli *bcl
489
490
bcli->output);
491
492
response = jsonrpc_stream_success(bcli->cmd);
- json_add_bool(response, "success", *bcli->exitstatus == 0);
493
+ json_add_bool(response, "success",
494
+ *bcli->exitstatus == 0 ||
495
+ *bcli->exitstatus ==
496
+ RPC_TRANSACTION_ALREADY_IN_CHAIN);
497
json_add_string(response, "errmsg",
498
*bcli->exitstatus ?
499
tal_strndup(bcli->cmd,
0 commit comments