mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
common/json_stream: make json_add_jsonstr take a length.
This is useful when have have a jsmntok_t. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -356,7 +356,7 @@ static struct command_result *start_mw(struct multiwithdraw_command *mw)
|
||||
&mw_forward_error,
|
||||
mw);
|
||||
json_add_bool(req->js, "reservedok", false);
|
||||
json_add_jsonstr(req->js, "utxos", mw->utxos);
|
||||
json_add_jsonstr(req->js, "utxos", mw->utxos, strlen(mw->utxos));
|
||||
} else {
|
||||
plugin_log(mw->cmd->plugin, LOG_DBG,
|
||||
"multiwithdraw %"PRIu64": fundpsbt.",
|
||||
|
||||
Reference in New Issue
Block a user