Skip to main content

ckb_network_alert/
lib.rs

1//! Network Alert
2//! See <https://en.bitcoin.it/wiki/Alert_system> to learn the history of Bitcoin alert system.
3//! We implement the alert system in CKB for urgent situation,
4//! In CKB early stage we may meet the same crisis bugs that Bitcoin meet,
5//! in urgent case, CKB core team can send an alert message across CKB P2P network,
6//! the client will show the alert message, the other behaviors of CKB node will not change.
7//!
8//! Network Alert will be removed soon once the CKB network is considered mature.
9//!
10pub mod alert_relayer;
11pub mod notifier;
12#[cfg(test)]
13mod tests;
14pub mod verifier;
15
16use std::time::Duration;
17
18pub(crate) const BAD_MESSAGE_BAN_TIME: Duration = Duration::from_secs(5 * 60);