mirror of https://github.com/Revertron/Alfis
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
Rust
34 lines
1.1 KiB
Rust
pub const DB_VERSION: u32 = 0;
|
|
pub const CHAIN_VERSION: u32 = 0;
|
|
|
|
pub const ZONE_DIFFICULTY: u32 = 28;
|
|
pub const ZONE_MIN_DIFFICULTY: u32 = 22;
|
|
pub const LOCKER_DIFFICULTY: u32 = 16;
|
|
pub const KEYSTORE_DIFFICULTY: u32 = 23;
|
|
|
|
/// Blocks start to be signed starting from this index
|
|
pub const BLOCK_SIGNERS_START: u64 = 35;
|
|
|
|
/// How many signers are chosen for signing
|
|
pub const BLOCK_SIGNERS_ALL: u64 = 7;
|
|
|
|
/// Minimal signatures needed
|
|
pub const BLOCK_SIGNERS_MIN: u64 = 4;
|
|
|
|
/// Signers have 30 minutes to sign, after that time any owner of first 1000 block can add needed signature
|
|
pub const BLOCK_SIGNERS_TIME: i64 = 1800;
|
|
|
|
/// PoS signers, that sign blocks when chosen signers didn't sign
|
|
pub const BLOCK_POS_SIGNERS: u64 = 1000;
|
|
|
|
/// We start mining signing blocks after random delay, this is the max delay
|
|
pub const BLOCK_SIGNERS_START_RANDOM: i64 = 180;
|
|
|
|
pub const NEW_DOMAINS_INTERVAL: i64 = 86400; // One day in seconds
|
|
pub const DOMAIN_LIFETIME: i64 = 86400 * 365; // One year
|
|
|
|
pub const ZONE_MAX_LENGTH: usize = 10;
|
|
pub const MAX_RECONNECTS: u32 = 5;
|
|
|
|
pub const CLASS_ZONE: &str = "zone";
|
|
pub const CLASS_DOMAIN: &str = "domain"; |