df: use simplified version to print json

This commit is contained in:
niftynei
2021-01-13 19:55:21 -06:00
committed by neil saitug
parent 10fce07d96
commit 367e377d5a

View File

@@ -479,7 +479,8 @@ openchannel2_hook_deserialize(struct openchannel2_payload *payload,
} else if (!json_tok_streq(buffer, t_result, "continue"))
fatal("Plugin returned an invalid response to the"
" openchannel2 hook: %.*s",
toks[0].end - toks[0].start, buffer + toks[0].start);
json_tok_full_len(toks),
json_tok_full(buffer, toks));
if (!hook_extract_psbt(payload, dualopend, buffer, toks,
"openchannel2", true, &payload->psbt))