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
This commit is contained in:
Quentin Le Sceller 2018-04-10 15:29:55 -04:00 committed by Ignotus Peverell
parent 4d6e0378fe
commit cf2ffbc11a
3 changed files with 8 additions and 3 deletions

View file

@ -25,7 +25,7 @@ api_http_addr = "127.0.0.1:13413"
db_root = ".grin" 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" #seeding_type = "None"

View file

@ -32,7 +32,12 @@ use p2p;
use util::LOGGER; use util::LOGGER;
const SEEDS_URL: &'static str = "http://grin-tech.org/seeds.txt"; 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( pub fn connect_and_monitor(
p2p_server: Arc<p2p::Server>, p2p_server: Arc<p2p::Server>,

View file

@ -119,7 +119,7 @@ pub enum Seeding {
impl Default for Seeding { impl Default for Seeding {
fn default() -> Seeding { fn default() -> Seeding {
Seeding::WebStatic Seeding::DNSSeed
} }
} }