mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2025-01-03 01:07:39 +00:00
Add PulseChain to devp2p
This commit is contained in:
parent
d89b5d8719
commit
270357ff1d
@ -405,6 +405,10 @@ func newTXTChange(action, name string, ttl int64, values ...string) types.Change
|
||||
|
||||
// isSubdomain returns true if name is a subdomain of domain.
|
||||
func isSubdomain(name, domain string) bool {
|
||||
// Normalize strings for comparison
|
||||
name = strings.ToLower(name)
|
||||
domain = strings.ToLower(domain)
|
||||
|
||||
domain = strings.TrimSuffix(domain, ".")
|
||||
name = strings.TrimSuffix(name, ".")
|
||||
return strings.HasSuffix("."+name, "."+domain)
|
||||
|
@ -229,6 +229,10 @@ func ethFilter(args []string) (nodeFilter, error) {
|
||||
switch args[0] {
|
||||
case "mainnet":
|
||||
filter = forkid.NewStaticFilter(params.MainnetChainConfig, params.MainnetGenesisHash)
|
||||
case "PulseChain":
|
||||
filter = forkid.NewStaticFilter(params.PulseChainConfig, params.MainnetGenesisHash)
|
||||
case "PulseChainTestnet":
|
||||
filter = forkid.NewStaticFilter(params.PulseChainTestnetConfig, params.MainnetGenesisHash)
|
||||
case "rinkeby":
|
||||
filter = forkid.NewStaticFilter(params.RinkebyChainConfig, params.RinkebyGenesisHash)
|
||||
case "goerli":
|
||||
|
Loading…
Reference in New Issue
Block a user