Skip to content

Commit

Permalink
fixup! fixup! onchaind: cap max_possible_feerate using commitment tra…
Browse files Browse the repository at this point in the history
…nsaction.
  • Loading branch information
rustyrussell committed Dec 4, 2020
1 parent fb303e3 commit 40931f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions onchaind/onchaind.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 40931f1

Please sign in to comment.