From 06e8fbda95d86535bd2c94ae6ef76829ec5622c5 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 28 Mar 2018 11:35:40 +1030 Subject: [PATCH] onchain: print exactly what we were doing if we fail in grind_feerate. Signed-off-by: Rusty Russell --- onchaind/onchain.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/onchaind/onchain.c b/onchaind/onchain.c index b27649f24..2d2f47fbf 100644 --- a/onchaind/onchain.c +++ b/onchaind/onchain.c @@ -183,6 +183,12 @@ static bool grind_feerate(struct bitcoin_tx *commit_tx, narrow_feerate_range(fee, multiplier); return true; } + status_broken("grind_feerate failed from %u - %u" + " for tx %s, signature %s, multiplier %"PRIu64, + feerate_range.min, feerate_range.max, + type_to_string(tmpctx, struct bitcoin_tx, commit_tx), + type_to_string(tmpctx, secp256k1_ecdsa_signature, remotesig), + multiplier); return false; }