diff --git a/other-tlds.txt b/other-tlds.txt deleted file mode 100644 index 5b93477..0000000 --- a/other-tlds.txt +++ /dev/null @@ -1,36 +0,0 @@ -# OpenNIC zones -bbs -chan -cyb -dyn -geek -gopher -indy -libre -neo -null -o -oss -oz -parody -pirate -# Namecoin zone -bit -# Etherium -eth -# EmerCoin -emc -coin -lib -bazar -# Reserved -example -invalid -local -localhost -onion -i2p -meshname -meship -mem -test \ No newline at end of file diff --git a/src/commons/constants.rs b/src/commons/constants.rs index ba896e7..36e6a17 100644 --- a/src/commons/constants.rs +++ b/src/commons/constants.rs @@ -17,9 +17,6 @@ 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; - /// Limited Confidence depth /// https://en.bitcoinwiki.org/wiki/Limited_Confidence_Proof-of-Activity pub const LIMITED_CONFIDENCE_DEPTH: u64 = 4; @@ -27,15 +24,9 @@ pub const LIMITED_CONFIDENCE_DEPTH: u64 = 4; /// We start mining signing blocks after random delay, this is the max delay pub const BLOCK_SIGNERS_START_RANDOM: i64 = 180; -/// Maximum zones in blockchain -pub const MAXIMUM_ZONES: usize = 10; - 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 DB_NAME: &str = "blockchain.db"; pub const CLASS_ORIGIN: &str = "origin"; pub const CLASS_DOMAIN: &str = "domain"; @@ -49,5 +40,6 @@ pub const LOG_REFRESH_DELAY_SEC: u64 = 60; pub const POLL_TIMEOUT: Option = Some(Duration::from_millis(25000)); pub const MAX_PACKET_SIZE: usize = 1 * 1024 * 1024; // 1 Mb pub const MAX_READ_BLOCK_TIME: u128 = 500; +pub const MAX_RECONNECTS: u32 = 5; pub const MAX_IDLE_SECONDS: u64 = 180; pub const MAX_NODES: usize = 15;