mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +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
|
@ -36,6 +36,8 @@ const SEEDS_URL: &'static str = "http://grin-tech.org/seeds.txt";
|
|||
// DNS Seeds with contact email associated
|
||||
const DNS_SEEDS: &'static [&'static str] = &[
|
||||
"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(
|
||||
|
@ -359,6 +361,7 @@ pub fn dns_seeds() -> Box<Fn() -> Vec<SocketAddr> + Send> {
|
|||
),
|
||||
}
|
||||
}
|
||||
debug!(LOGGER, "Retrieved seed 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.
|
||||
pub fn web_seeds() -> Box<Fn() -> Vec<SocketAddr> + Send> {
|
||||
Box::new(|| {
|
||||
debug!(LOGGER, "Retrieving seed nodes from {}", SEEDS_URL);
|
||||
let text: String = api::client::get(SEEDS_URL).expect("Failed to resolve seeds");
|
||||
let addrs = text
|
||||
.split_whitespace()
|
||||
|
|
Loading…
Reference in a new issue