Skip to content

Commit 97e3c07

Browse files
authored
cuprated: update killswitch timestamp (#391)
* update killswitch timestamp * update sanity ts * update * update
1 parent 7d18098 commit 97e3c07

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

binaries/cuprated/src/killswitch.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,24 @@ use std::{process::exit, time::Duration};
1616

1717
use cuprate_helper::time::current_unix_timestamp;
1818

19-
/// Assert that this is not a v1 release and an alpha release.
19+
/// Assert that this is an alpha release.
2020
const _: () = {
2121
const_format::assertcp_ne!(
2222
crate::constants::MAJOR_VERSION,
2323
"1",
2424
"`cuprated` major version is 1, killswitch module should be deleted."
2525
);
26+
const_format::assertcp_ne!(
27+
crate::constants::MINOR_VERSION,
28+
"1",
29+
"`cuprated` minor version is 1, killswitch module should be deleted."
30+
);
2631
};
2732

2833
/// The killswitch activates if the current timestamp is ahead of this timestamp.
2934
///
30-
/// Sat Mar 01 2025 05:00:00 GMT+0000
31-
pub const KILLSWITCH_ACTIVATION_TIMESTAMP: u64 = 1740805200;
35+
/// Wed Apr 16 12:00:00 AM UTC 2025
36+
pub const KILLSWITCH_ACTIVATION_TIMESTAMP: u64 = 1744761600;
3237

3338
/// Check if the system clock is past a certain timestamp,
3439
/// if so, exit the entire program.
@@ -39,8 +44,8 @@ fn killswitch() {
3944
/// sanity checking the system's clock to make
4045
/// sure it is not overly behind.
4146
///
42-
/// Fri Jan 17 2025 14:19:10 GMT+0000
43-
const SYSTEM_CLOCK_SANITY_TIMESTAMP: u64 = 1737123550;
47+
/// Tue Mar 11 08:33:20 PM UTC 2025
48+
const SYSTEM_CLOCK_SANITY_TIMESTAMP: u64 = 1741725200;
4449

4550
let current_ts = current_unix_timestamp();
4651

0 commit comments

Comments
 (0)