@@ -968,9 +968,9 @@ pub(super) enum ChannelUpdateStatus {
968
968
/// We've announced the channel as enabled and are connected to our peer.
969
969
Enabled,
970
970
/// Our channel is no longer live, but we haven't announced the channel as disabled yet.
971
- DisabledStaged(u8 ),
971
+ DisabledStaged(u16 ),
972
972
/// Our channel is live again, but we haven't announced the channel as enabled yet.
973
- EnabledStaged(u8 ),
973
+ EnabledStaged(u16 ),
974
974
/// We've announced the channel as disabled.
975
975
Disabled,
976
976
}
@@ -1160,23 +1160,23 @@ pub(crate) const MIN_AFFORDABLE_HTLC_COUNT: usize = 4;
1160
1160
/// number of ticks to allow forwarding HTLCs by nodes that have yet to receive the new
1161
1161
/// ChannelUpdate prompted by the config update. This value was determined as follows:
1162
1162
///
1163
- /// * The expected interval between ticks (1 minute ).
1163
+ /// * The expected interval between ticks (1 second ).
1164
1164
/// * The average convergence delay of updates across the network, i.e., ~300 seconds on average
1165
1165
/// for a node to see an update as seen on `<https://arxiv.org/pdf/2205.12737.pdf>`.
1166
1166
/// * `EXPIRE_PREV_CONFIG_TICKS` = convergence_delay / tick_interval
1167
- pub(crate) const EXPIRE_PREV_CONFIG_TICKS: usize = 5;
1167
+ pub(crate) const EXPIRE_PREV_CONFIG_TICKS: usize = 5 * 60 ;
1168
1168
1169
1169
/// The number of ticks that may elapse while we're waiting for a response to a
1170
1170
/// [`msgs::RevokeAndACK`] or [`msgs::ChannelReestablish`] message before we attempt to disconnect
1171
1171
/// them.
1172
1172
///
1173
1173
/// See [`ChannelContext::sent_message_awaiting_response`] for more information.
1174
- pub(crate) const DISCONNECT_PEER_AWAITING_RESPONSE_TICKS: usize = 2;
1174
+ pub(crate) const DISCONNECT_PEER_AWAITING_RESPONSE_TICKS: usize = 2 * 60 ;
1175
1175
1176
1176
/// The number of ticks that may elapse while we're waiting for an unfunded outbound/inbound channel
1177
1177
/// to be promoted to a [`Channel`] since the unfunded channel was created. An unfunded channel
1178
1178
/// exceeding this age limit will be force-closed and purged from memory.
1179
- pub(crate) const UNFUNDED_CHANNEL_AGE_LIMIT_TICKS: usize = 60;
1179
+ pub(crate) const UNFUNDED_CHANNEL_AGE_LIMIT_TICKS: usize = 60 * 60 ;
1180
1180
1181
1181
/// Number of blocks needed for an output from a coinbase transaction to be spendable.
1182
1182
pub(crate) const COINBASE_MATURITY: u32 = 100;
@@ -3608,7 +3608,7 @@ pub(super) struct Channel<SP: Deref> where SP::Target: SignerProvider {
3608
3608
/// The number of ticks before the channel is forced closed if
3609
3609
/// no progress on closing_signed negotiation is being made.
3610
3610
/// An unprogressed channel that exceeds this limit will be abandoned.
3611
- const UNPROGRESS_CLOSING_SIGNED_NEGOTIATION_AGE_LIMIT_TICKS: i32 = 1;
3611
+ pub(crate) const UNPROGRESS_CLOSING_SIGNED_NEGOTIATION_AGE_LIMIT_TICKS: i32 = 1 * 60 ;
3612
3612
3613
3613
#[cfg(any(test, fuzzing))]
3614
3614
struct CommitmentTxInfoCached {
@@ -5716,7 +5716,7 @@ impl<SP: Deref> Channel<SP> where
5716
5716
5717
5717
/// Checks if the closing_signed negotiation is making appropriate progress, possibly returning
5718
5718
/// an Err if no progress is being made and the channel should be force-closed instead.
5719
- /// Should be called on a one-minute timer.
5719
+ /// Should be called on a one-second timer.
5720
5720
pub fn timer_check_closing_negotiation_progress(&mut self) -> Result<(), ChannelError> {
5721
5721
if self.closing_negotiation_ready() {
5722
5722
if self.context.closing_signed_in_flight {
0 commit comments