Called after lightningd has broadcast the transaction. */
| 127 | |
| 128 | /* Called after lightningd has broadcast the transaction. */ |
| 129 | static struct command_result *sendpsbt_done(struct command *cmd, |
| 130 | const char *buf, |
| 131 | const jsmntok_t *result, |
| 132 | struct unreleased_tx *utx) |
| 133 | { |
| 134 | struct json_stream *out; |
| 135 | |
| 136 | out = jsonrpc_stream_success(cmd); |
| 137 | json_add_hex_talarr(out, "tx", linearize_wtx(tmpctx, utx->tx)); |
| 138 | json_add_txid(out, "txid", &utx->txid); |
| 139 | json_add_psbt(out, "psbt", utx->psbt); |
| 140 | return command_finished(cmd, out); |
| 141 | } |
| 142 | |
| 143 | /* Called after lightningd has signed the inputs. */ |
| 144 | static struct command_result *signpsbt_done(struct command *cmd, |
nothing calls this directly
no test coverage detected