clementine_core::constants

Constant MAX_ALL_SESSIONS_BYTES

Source
pub const MAX_ALL_SESSIONS_BYTES: usize = 2_000_000_000;
Expand description

The maximum number of bytes that can be used by all nonce sessions. If it exceeds this limit, the verifier will delete the oldest nonce sessions. This limit is approximate, because it doesn’t take into account the internal extra bytes used in HashMap and VecDeque used in the AllSessions. It only takes into account bytes used for the secnonces.