Skip to content

Commit

Permalink
dnsseed: add a new seed that supports utreexo (#330)
Browse files Browse the repository at this point in the history
This commit adds a new mainnet dns seed that lets us fetch utreexo peers
  • Loading branch information
Davidson-Souza authored Jan 7, 2025
1 parent 63dcb9a commit c726ac2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/floresta-chain/src/pruned_utreexo/chainparams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,18 @@ pub fn get_chain_dns_seeds(network: Network) -> Vec<DnsSeed> {
let x49 = ServiceFlags::from(0x49);
// this mean NETWORK + WITNESS + COMPACT_FILTERS + UTREEXO
let x1000049 = ServiceFlags::from(0x1000049);
// this means NETWORK + WITNESS + UTREEXO
let x1000009 = ServiceFlags::from(0x1000009);
// filters aren't supported (usually returns a static list of peers)
let none = ServiceFlags::NONE;

match network {
Network::Bitcoin => {
seeds.push(DnsSeed::new(
Network::Bitcoin,
"seed.calvinkim.info",
x1000009,
));
seeds.push(DnsSeed::new(
Network::Bitcoin,
"seed.bitcoin.sipa.be",
Expand Down

0 comments on commit c726ac2

Please sign in to comment.