Skip to content

Commit

Permalink
grin v5.3 (0104) visibility scope tweaks to aid seed test utilities (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
bayk committed Jun 20, 2024
1 parent baa8fc9 commit 433e294
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion p2p/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ mod peer;
mod peers;
mod protocol;
mod serv;
mod store;
pub mod store;
pub mod types;

pub use crate::conn::SEND_CHANNEL_CAP;
Expand Down
3 changes: 2 additions & 1 deletion servers/src/grin/seed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,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 {
if dns.ends_with(".onion") {
Expand Down

0 comments on commit 433e294

Please sign in to comment.