You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Check that we won't be pushed over our dust exposure limit by the feerate increase.
4463
-
let dust_exposure_limiting_feerate = self.get_dust_exposure_limiting_feerate(
4464
-
&fee_estimator, funding.get_channel_type(),
4465
-
);
4466
-
// Do not include outbound update_add_htlc's in the holding cell, or those which haven't yet been ACK'ed by the counterparty (ie. LocalAnnounced HTLCs)
if next_local_commitment_stats.dust_exposure_msat > max_dust_htlc_exposure_msat {
4473
-
return Err(ChannelError::close(format!("Peer sent update_fee with a feerate ({}) which may over-expose us to dust-in-flight on our own transactions (totaling {} msat)",
"Peer sent update_fee with a feerate ({}) which may over-expose us to dust-in-flight on our own transactions (totaling {} msat)",
4490
+
msg.feerate_per_kw,
4491
+
next_local_commitment_stats.dust_exposure_msat,
4492
+
)
4493
+
));
4475
4494
}
4476
4495
if next_remote_commitment_stats.dust_exposure_msat > max_dust_htlc_exposure_msat {
4477
-
return Err(ChannelError::close(format!("Peer sent update_fee with a feerate ({}) which may over-expose us to dust-in-flight on our counterparty's transactions (totaling {} msat)",
0 commit comments