From 57e2dfd3388448b2d042a56dcc83f3e5b44aed87 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 11 Jul 2021 20:35:24 +0930 Subject: [PATCH] openingd: tell them channel_type if signature is bad. Signed-off-by: Rusty Russell --- openingd/openingd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openingd/openingd.c b/openingd/openingd.c index aa41285ee429..01a8ece29221 100644 --- a/openingd/openingd.c +++ b/openingd/openingd.c @@ -702,12 +702,14 @@ static bool funder_finalize_channel_setup(struct state *state, if (!check_tx_sig(*tx, 0, NULL, wscript, &state->their_funding_pubkey, sig)) { peer_failed_err(state->pps, &state->channel_id, - "Bad signature %s on tx %s using key %s", + "Bad signature %s on tx %s using key %s (channel_type=%s)", type_to_string(tmpctx, struct bitcoin_signature, sig), type_to_string(tmpctx, struct bitcoin_tx, *tx), type_to_string(tmpctx, struct pubkey, - &state->their_funding_pubkey)); + &state->their_funding_pubkey), + fmt_featurebits(tmpctx, + state->channel->type->features)); } /* We save their sig to our first commitment tx */