hopr_lib/
constants.rs

1/// Application version as presented externally using the heartbeat mechanism
2pub const APP_VERSION: &str = env!("CARGO_PKG_VERSION");
3
4/// Application version coerced into the `major`.`minor`.`patch` form
5pub const APP_VERSION_COERCED: &str = const_format::formatcp!(
6    "{}.{}.{}",
7    env!("CARGO_PKG_VERSION_MAJOR"),
8    env!("CARGO_PKG_VERSION_MINOR"),
9    env!("CARGO_PKG_VERSION_PATCH")
10);
11
12/// Minimum native token balance to start the node.
13pub const MIN_NATIVE_BALANCE: &str = "1000000000000000"; // 0.001
14/// Balance that is suggested for funding the node the first time in order to make it start.
15pub const SUGGESTED_NATIVE_BALANCE: &str = "10000000000000000"; // 0.01
16
17pub const ONBOARDING_INFORMATION_INTERVAL: std::time::Duration = std::time::Duration::from_secs(30);
18
19/// Default minimum quality of stored peer entries to re-sync from the persistent storage on
20/// node's startup.
21pub const DEFAULT_MIN_QUALITY_TO_SYNC: f64 = 0.9;