From 6e075d2dbbf19859f80411e6502876f7ffd0a607 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 10 Sep 2021 11:44: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 6df478bc3..3309cc25e 100644 --- a/openingd/openingd.c +++ b/openingd/openingd.c @@ -709,12 +709,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 */