-
Notifications
You must be signed in to change notification settings - Fork 990
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
visibility scope tweaks to aid seed test utilities (#3707)
- Loading branch information
1 parent
145d819
commit 9d92f34
Showing
3 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,16 +33,17 @@ use crate::p2p::types::PeerAddr; | |
use crate::p2p::ChainAdapter; | ||
use crate::util::StopState; | ||
|
||
// DNS Seeds with contact email associated | ||
const MAINNET_DNS_SEEDS: &[&str] = &[ | ||
/// DNS Seeds with contact email associated - Mainnet | ||
pub const MAINNET_DNS_SEEDS: &[&str] = &[ | ||
"mainnet.seed.grin.icu", // [email protected] | ||
"mainnet.seed.713.mw", // [email protected] | ||
"mainnet.seed.grin.lesceller.com", // [email protected] | ||
"mainnet.seed.grin.prokapi.com", // [email protected] | ||
"grinseed.yeastplume.org", // [email protected] | ||
"mainnet-seed.grinnode.live", // [email protected] | ||
]; | ||
const TESTNET_DNS_SEEDS: &[&str] = &[ | ||
/// DNS Seeds with contact email associated - Testnet | ||
pub const TESTNET_DNS_SEEDS: &[&str] = &[ | ||
"floonet.seed.grin.icu", // [email protected] | ||
"floonet.seed.713.mw", // [email protected] | ||
"floonet.seed.grin.lesceller.com", // [email protected] | ||
|
@@ -393,7 +394,8 @@ pub fn default_dns_seeds() -> Box<dyn Fn() -> Vec<PeerAddr> + Send> { | |
}) | ||
} | ||
|
||
fn resolve_dns_to_addrs(dns_records: &Vec<String>) -> Vec<PeerAddr> { | ||
/// Convenience function to resolve dns addresses from DNS records | ||
pub fn resolve_dns_to_addrs(dns_records: &Vec<String>) -> Vec<PeerAddr> { | ||
let mut addresses: Vec<PeerAddr> = vec![]; | ||
for dns in dns_records { | ||
debug!("Retrieving addresses from dns {}", dns); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters