mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-05 07:14:36 +01:00
dual-fund: check the max feerate also, not just min feerate
We cap beneath our max feerate
This commit is contained in:
@@ -935,6 +935,13 @@ static u8 *accepter_start(struct state *state, const u8 *oc2_msg)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (state->feerate_per_kw_funding > state->max_feerate) {
|
||||
negotiation_failed(state, false,
|
||||
"feerate_per_kw_funding %u above maximum %u",
|
||||
state->feerate_per_kw_funding, state->max_feerate);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* We can figure out the channel id now */
|
||||
derive_channel_id_v2(&state->channel_id,
|
||||
&state->our_points.revocation,
|
||||
|
||||
Reference in New Issue
Block a user