From 40931f17b166c9e54964eb7557d2a1edccda5530 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 4 Dec 2020 10:33:22 +1030 Subject: [PATCH] fixup! fixup! onchaind: cap max_possible_feerate using commitment transaction. --- onchaind/onchaind.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/onchaind/onchaind.c b/onchaind/onchaind.c index 4c481eb30d66..ccdbdf836241 100644 --- a/onchaind/onchaind.c +++ b/onchaind/onchaind.c @@ -152,6 +152,10 @@ static void trim_maximum_feerate(struct amount_sat funding, size_t weight; struct amount_sat fee = funding; + /* FIXME: This doesn't work for elements? */ + if (chainparams->is_elements) + return; + weight = bitcoin_tx_core_weight(tal_count(commitment->inputs), tal_count(commitment->outputs));