From cf2ffbc11a4dc8c5c4c9509c1b3271657cbb3f44 Mon Sep 17 00:00:00 2001 From: Quentin Le Sceller Date: Tue, 10 Apr 2018 15:29:55 -0400 Subject: [PATCH] Add DNS Seed and make DNSSeed default (#942) * Add dns seed seeding type * Add grin-seed.owncrypto.de and make DNSSeed default * Add email address for each DNS Seed --- grin.toml | 2 +- grin/src/seed.rs | 7 ++++++- grin/src/types.rs | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/grin.toml b/grin.toml index 32777a917..b0d588def 100644 --- a/grin.toml +++ b/grin.toml @@ -25,7 +25,7 @@ api_http_addr = "127.0.0.1:13413" db_root = ".grin" -#How to seed this server, can be None, List or WebStatic +#How to seed this server, can be None, List, WebStatic or DNSSeed # #seeding_type = "None" diff --git a/grin/src/seed.rs b/grin/src/seed.rs index efa4d219b..5a4e0cae2 100644 --- a/grin/src/seed.rs +++ b/grin/src/seed.rs @@ -32,7 +32,12 @@ use p2p; use util::LOGGER; const SEEDS_URL: &'static str = "http://grin-tech.org/seeds.txt"; -const DNS_SEEDS: &'static [&'static str] = &["seed.grin-tech.org", "seed.grin.lesceller.com"]; +// DNS Seeds with contact email associated +const DNS_SEEDS: &'static [&'static str] = &[ + "seed.grin-tech.org", // igno.peverell@protonmail.com + "seed.grin.lesceller.com", // q.lesceller@gmail.com + "grin-seed.owncrypto.de", // roll@yourowncryp.to +]; pub fn connect_and_monitor( p2p_server: Arc, diff --git a/grin/src/types.rs b/grin/src/types.rs index df6ddb949..c4368b147 100644 --- a/grin/src/types.rs +++ b/grin/src/types.rs @@ -119,7 +119,7 @@ pub enum Seeding { impl Default for Seeding { fn default() -> Seeding { - Seeding::WebStatic + Seeding::DNSSeed } }