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
returnErr(APIError::APIMisuseError{err:format!("Configured with an unreasonable our_to_self_delay ({}) putting user funds at risks", holder_selected_contest_delay)});
639
639
}
640
640
let holder_selected_channel_reserve_satoshis = Channel::<Signer>::get_holder_selected_channel_reserve_satoshis(channel_value_satoshis);
641
-
if holder_selected_channel_reserve_satoshis < MIN_DUST_LIMIT_SATOSHIS{
641
+
if holder_selected_channel_reserve_satoshis < MIN_CHAN_DUST_LIMIT_SATOSHIS{
if msg.max_accepted_htlcs < config.peer_channel_config_limits.min_max_accepted_htlcs{
844
844
returnErr(ChannelError::Close(format!("max_accepted_htlcs ({}) is less than the user specified limit ({})", msg.max_accepted_htlcs, config.peer_channel_config_limits.min_max_accepted_htlcs)));
845
845
}
846
-
if msg.dust_limit_satoshis < MIN_DUST_LIMIT_SATOSHIS{
847
-
returnErr(ChannelError::Close(format!("dust_limit_satoshis ({}) is less than the implementation limit ({})", msg.dust_limit_satoshis,MIN_DUST_LIMIT_SATOSHIS)));
846
+
if msg.dust_limit_satoshis < MIN_CHAN_DUST_LIMIT_SATOSHIS{
847
+
returnErr(ChannelError::Close(format!("dust_limit_satoshis ({}) is less than the implementation limit ({})", msg.dust_limit_satoshis,MIN_CHAN_DUST_LIMIT_SATOSHIS)));
848
848
}
849
849
if msg.dust_limit_satoshis > MAX_CHAN_DUST_LIMIT_SATOSHIS{
850
850
returnErr(ChannelError::Close(format!("dust_limit_satoshis ({}) is greater than the implementation limit ({})", msg.dust_limit_satoshis,MAX_CHAN_DUST_LIMIT_SATOSHIS)));
let background_feerate = fee_estimator.get_est_sat_per_1000_weight(ConfirmationTarget::Background);
865
865
866
866
let holder_selected_channel_reserve_satoshis = Channel::<Signer>::get_holder_selected_channel_reserve_satoshis(msg.funding_satoshis);
867
-
if holder_selected_channel_reserve_satoshis < MIN_DUST_LIMIT_SATOSHIS{
868
-
returnErr(ChannelError::Close(format!("Suitable channel reserve not found. remote_channel_reserve was ({}). dust_limit_satoshis is ({}).", holder_selected_channel_reserve_satoshis,MIN_DUST_LIMIT_SATOSHIS)));
867
+
if holder_selected_channel_reserve_satoshis < MIN_CHAN_DUST_LIMIT_SATOSHIS{
868
+
returnErr(ChannelError::Close(format!("Suitable channel reserve not found. remote_channel_reserve was ({}). dust_limit_satoshis is ({}).", holder_selected_channel_reserve_satoshis,MIN_CHAN_DUST_LIMIT_SATOSHIS)));
869
869
}
870
-
if msg.channel_reserve_satoshis < MIN_DUST_LIMIT_SATOSHIS{
871
-
returnErr(ChannelError::Close(format!("channel_reserve_satoshis ({}) is smaller than our dust limit ({})", msg.channel_reserve_satoshis,MIN_DUST_LIMIT_SATOSHIS)));
870
+
if msg.channel_reserve_satoshis < MIN_CHAN_DUST_LIMIT_SATOSHIS{
871
+
returnErr(ChannelError::Close(format!("channel_reserve_satoshis ({}) is smaller than our dust limit ({})", msg.channel_reserve_satoshis,MIN_CHAN_DUST_LIMIT_SATOSHIS)));
872
872
}
873
873
if holder_selected_channel_reserve_satoshis < msg.dust_limit_satoshis{
874
874
returnErr(ChannelError::Close(format!("Dust limit ({}) too high for the channel reserve we require the remote to keep ({})", msg.dust_limit_satoshis, holder_selected_channel_reserve_satoshis)));
if msg.max_accepted_htlcs < config.peer_channel_config_limits.min_max_accepted_htlcs{
1618
1618
returnErr(ChannelError::Close(format!("max_accepted_htlcs ({}) is less than the user specified limit ({})", msg.max_accepted_htlcs, config.peer_channel_config_limits.min_max_accepted_htlcs)));
1619
1619
}
1620
-
if msg.dust_limit_satoshis < MIN_DUST_LIMIT_SATOSHIS{
1621
-
returnErr(ChannelError::Close(format!("dust_limit_satoshis ({}) is less than the implementation limit ({})", msg.dust_limit_satoshis,MIN_DUST_LIMIT_SATOSHIS)));
1620
+
if msg.dust_limit_satoshis < MIN_CHAN_DUST_LIMIT_SATOSHIS{
1621
+
returnErr(ChannelError::Close(format!("dust_limit_satoshis ({}) is less than the implementation limit ({})", msg.dust_limit_satoshis,MIN_CHAN_DUST_LIMIT_SATOSHIS)));
1622
1622
}
1623
1623
if msg.dust_limit_satoshis > MAX_CHAN_DUST_LIMIT_SATOSHIS{
1624
1624
returnErr(ChannelError::Close(format!("dust_limit_satoshis ({}) is greater than the implementation limit ({})", msg.dust_limit_satoshis,MAX_CHAN_DUST_LIMIT_SATOSHIS)));
0 commit comments