From 367e377d5a95b3f7423a83d457ce98c415b0ea76 Mon Sep 17 00:00:00 2001 From: niftynei Date: Wed, 13 Jan 2021 19:55:21 -0600 Subject: [PATCH] df: use simplified version to print json --- lightningd/dual_open_control.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightningd/dual_open_control.c b/lightningd/dual_open_control.c index 00f79274f..38741d208 100644 --- a/lightningd/dual_open_control.c +++ b/lightningd/dual_open_control.c @@ -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))