mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-08 04:11:08 +03:00
Add 2 more dns seeds (#1496)
This commit is contained in:
parent
dbe53f63c8
commit
277687c17c
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,9 @@ 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";
|
||||||
// DNS Seeds with contact email associated
|
// DNS Seeds with contact email associated
|
||||||
const DNS_SEEDS: &'static [&'static str] = &[
|
const DNS_SEEDS: &'static [&'static str] = &[
|
||||||
"t3.seed.grin-tech.org", // igno.peverell@protonmail.com
|
"t3.seed.grin-tech.org", // igno.peverell@protonmail.com
|
||||||
|
"seed.grin.lesceller.com", // q.lesceller@gmail.com
|
||||||
|
"t3.grin-seed.prokapi.com", // info@prokapi.com
|
||||||
];
|
];
|
||||||
|
|
||||||
pub fn connect_and_monitor(
|
pub fn connect_and_monitor(
|
||||||
|
@ -359,6 +361,7 @@ pub fn dns_seeds() -> Box<Fn() -> Vec<SocketAddr> + Send> {
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
debug!(LOGGER, "Retrieved seed addresses: {:?}", addresses);
|
||||||
addresses
|
addresses
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -367,6 +370,7 @@ pub fn dns_seeds() -> Box<Fn() -> Vec<SocketAddr> + Send> {
|
||||||
/// http. Easy method until we have a set of DNS names we can rely on.
|
/// http. Easy method until we have a set of DNS names we can rely on.
|
||||||
pub fn web_seeds() -> Box<Fn() -> Vec<SocketAddr> + Send> {
|
pub fn web_seeds() -> Box<Fn() -> Vec<SocketAddr> + Send> {
|
||||||
Box::new(|| {
|
Box::new(|| {
|
||||||
|
debug!(LOGGER, "Retrieving seed nodes from {}", SEEDS_URL);
|
||||||
let text: String = api::client::get(SEEDS_URL).expect("Failed to resolve seeds");
|
let text: String = api::client::get(SEEDS_URL).expect("Failed to resolve seeds");
|
||||||
let addrs = text
|
let addrs = text
|
||||||
.split_whitespace()
|
.split_whitespace()
|
||||||
|
|
Loading…
Reference in a new issue