Skip to content

Commit

Permalink
Merge pull request #77 from Davidson-Souza/signet-seeds
Browse files Browse the repository at this point in the history
Use signet seeds to return utreexo nodes
  • Loading branch information
kcalvinalvin committed Oct 31, 2023
2 parents 3998c2a + b34f6a5 commit aeddca7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions chaincfg/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ var (
// DefaultSignetDNSSeeds is the list of seed nodes for the default
// (public, Taproot enabled) signet network.
DefaultSignetDNSSeeds = []DNSSeed{
{"seed.dlsouza.lol.", true}, // Davidson Souza, supports filtering, including utreexo (1 << 24)
{"178.128.221.177", false},
{"2a01:7c8:d005:390::5", false},
{"v7ajjeirttkbnt32wpy3c6w3emwnfr3fkla7hpxcfokr3ysd3kqtzmqd.onion:38333", false},
Expand Down
6 changes: 5 additions & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2314,8 +2314,12 @@ func (s *server) peerHandler() {
}

if !cfg.DisableDNSSeed {
requiredServices := defaultRequiredServices
if cfg.Utreexo {
requiredServices |= wire.SFNodeUtreexo
}
// Add peers discovered through DNS to the address manager.
connmgr.SeedFromDNS(activeNetParams.Params, defaultRequiredServices,
connmgr.SeedFromDNS(activeNetParams.Params, requiredServices,
btcdLookup, func(addrs []*wire.NetAddress) {
// Bitcoind uses a lookup of the dns seeder here. This
// is rather strange since the values looked up by the
Expand Down

0 comments on commit aeddca7

Please sign in to comment.