]> git.bitcoin.ninja Git - dnsseed-rust/commitdiff
Tweak default settings slightly
authorMatt Corallo <git@bluematt.me>
Wed, 14 Jul 2021 02:16:44 +0000 (02:16 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 14 Jul 2021 20:44:36 +0000 (20:44 +0000)
src/datastore.rs

index bf0470a10f6c34393915da67bd9edbcb1684b111..b4c40fd8957e7b15c53f33f3a4712e06d99baca1 100644 (file)
@@ -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);