cmd/devp2p: update chainConfig for worldland testnet and mainnet

This commit is contained in:
siddharth0a 2024-04-03 16:05:17 +09:00
parent b18a771de3
commit c2fc306206
2 changed files with 7 additions and 1 deletions

View file

@ -44,7 +44,7 @@ set to standard output. The following filters are supported:
- `-limit <N>` limits the output set to N entries, taking the top N nodes by score
- `-ip <CIDR>` filters nodes by IP subnet
- `-min-age <duration>` filters nodes by 'first seen' time
- `-eth-network <mainnet/rinkeby/goerli/ropsten>` filters nodes by "eth" ENR entry
- `-eth-network <mainnet/rinkeby/goerli/ropsten/lve>` filters nodes by "eth" ENR entry
- `-les-server` filters nodes by LES server support
- `-snap` filters nodes by snap protocol support

View file

@ -237,6 +237,12 @@ func ethFilter(args []string) (nodeFilter, error) {
filter = forkid.NewStaticFilter(params.RopstenChainConfig, params.RopstenGenesisHash)
case "sepolia":
filter = forkid.NewStaticFilter(params.SepoliaChainConfig, params.SepoliaGenesisHash)
case "lve":
filter = forkid.NewStaticFilter(params.LveChainConfig, params.LveGenesisHash)
case "seoul":
filter = forkid.NewStaticFilter(params.SeoulChainConfig, params.SeoulGenesisHash)
case "gwangju":
filter = forkid.NewStaticFilter(params.GwangjuChainConfig, params.GwangjuGenesisHash)
default:
return nil, fmt.Errorf("unknown network %q", args[0])
}