hypercore_protocol/constants.rs
1/// Seed for the discovery key hash
2pub(crate) const DISCOVERY_NS_BUF: &[u8] = b"hypercore";
3
4/// Default timeout (in seconds)
5pub(crate) const DEFAULT_TIMEOUT: u32 = 20;
6
7/// Default keepalive interval (in seconds)
8pub(crate) const DEFAULT_KEEPALIVE: u32 = 10;
9
10// 16,78MB is the max encrypted wire message size (will be much smaller usually).
11// This limitation stems from the 24bit header.
12pub(crate) const MAX_MESSAGE_SIZE: u64 = 0xFFFFFF;
13
14/// v10: Protocol name
15pub(crate) const PROTOCOL_NAME: &str = "hypercore/alpha";