X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=dnsseed-rust;a=blobdiff_plain;f=src%2Fdatastore.rs;fp=src%2Fdatastore.rs;h=b4c40fd8957e7b15c53f33f3a4712e06d99baca1;hp=bf0470a10f6c34393915da67bd9edbcb1684b111;hb=95fab332f4cfb69e8f1e6b48c15b3de13667cf72;hpb=8ee71e52b8d5c67e05f4d6408a51e4d59901d618 diff --git a/src/datastore.rs b/src/datastore.rs index bf0470a..b4c40fd 100644 --- a/src/datastore.rs +++ b/src/datastore.rs @@ -21,7 +21,7 @@ use crate::bloom::RollingBloomFilter; use crate::bgp_client::BGPClient; pub const SECS_PER_SCAN_RESULTS: u64 = 15; -const MAX_CONNS_PER_SEC_PER_STATUS: u64 = 500; +const MAX_CONNS_PER_SEC_PER_STATUS: u64 = 1000; #[derive(Clone, Copy, Hash, PartialEq, Eq)] pub enum AddressState { @@ -275,14 +275,14 @@ impl Store { let mut u64s = HashMap::with_capacity(15); u64s.insert(U64Setting::RunTimeout, 120); u64s.insert(U64Setting::WasGoodTimeout, 21600); - u64s.insert(U64Setting::RescanInterval(AddressState::Untested), 1); + u64s.insert(U64Setting::RescanInterval(AddressState::Untested), 3600); u64s.insert(U64Setting::RescanInterval(AddressState::LowBlockCount), 3600); u64s.insert(U64Setting::RescanInterval(AddressState::HighBlockCount), 7200); u64s.insert(U64Setting::RescanInterval(AddressState::LowVersion), 21600); u64s.insert(U64Setting::RescanInterval(AddressState::BadVersion), 21600); u64s.insert(U64Setting::RescanInterval(AddressState::NotFullNode), 86400); u64s.insert(U64Setting::RescanInterval(AddressState::ProtocolViolation), 86400); - u64s.insert(U64Setting::RescanInterval(AddressState::Timeout), 86400); + u64s.insert(U64Setting::RescanInterval(AddressState::Timeout), 604800); u64s.insert(U64Setting::RescanInterval(AddressState::TimeoutDuringRequest), 21600); u64s.insert(U64Setting::RescanInterval(AddressState::TimeoutAwaitingPong), 3600); u64s.insert(U64Setting::RescanInterval(AddressState::TimeoutAwaitingAddr), 1800);