Refactored the work with signing blocks.
This commit is contained in:
@@ -6,11 +6,26 @@ pub const ZONE_MIN_DIFFICULTY: u32 = 22;
|
||||
pub const LOCKER_DIFFICULTY: u32 = 16;
|
||||
pub const KEYSTORE_DIFFICULTY: u32 = 23;
|
||||
|
||||
pub const LOCKER_BLOCK_START: u64 = 35;
|
||||
pub const LOCKER_BLOCK_LOCKERS: u64 = 7;
|
||||
pub const LOCKER_BLOCK_SIGNS: u64 = 4;
|
||||
pub const LOCKER_BLOCK_TIME: i64 = 300;
|
||||
pub const LOCKER_BLOCK_INTERVAL: u64 = 50;
|
||||
/// 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;
|
||||
|
||||
/// Last number of blocks from which we select signers
|
||||
pub const BLOCK_SIGNERS_WINDOW: u64 = 50;
|
||||
|
||||
/// 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
|
||||
|
||||
Reference in New Issue
Block a user