mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
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:
parent
4d6e0378fe
commit
cf2ffbc11a
3 changed files with 8 additions and 3 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -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<p2p::Server>,
|
||||
|
|
|
@ -119,7 +119,7 @@ pub enum Seeding {
|
|||
|
||||
impl Default for Seeding {
|
||||
fn default() -> Seeding {
|
||||
Seeding::WebStatic
|
||||
Seeding::DNSSeed
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue