2015-11-17 10:33:25 -06:00
|
|
|
// Copyright 2015 The go-ethereum Authors
|
2016-11-14 05:44:35 -06:00
|
|
|
// This file is part of the go-ethereum library.
|
2015-11-17 10:33:25 -06:00
|
|
|
//
|
2016-11-14 05:44:35 -06:00
|
|
|
// The go-ethereum library is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU Lesser General Public License as published by
|
2015-11-17 10:33:25 -06:00
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
2016-11-14 05:44:35 -06:00
|
|
|
// The go-ethereum library is distributed in the hope that it will be useful,
|
2015-11-17 10:33:25 -06:00
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2016-11-14 05:44:35 -06:00
|
|
|
// GNU Lesser General Public License for more details.
|
2015-11-17 10:33:25 -06:00
|
|
|
//
|
2016-11-14 05:44:35 -06:00
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
2015-11-17 10:33:25 -06:00
|
|
|
|
2016-11-14 05:44:35 -06:00
|
|
|
package params
|
2015-11-17 10:33:25 -06:00
|
|
|
|
2020-02-13 07:38:30 -06:00
|
|
|
import "github.com/ethereum/go-ethereum/common"
|
|
|
|
|
2016-09-05 11:07:57 -05:00
|
|
|
// MainnetBootnodes are the enode URLs of the P2P bootstrap nodes running on
|
|
|
|
// the main Ethereum network.
|
2017-01-05 06:56:06 -06:00
|
|
|
var MainnetBootnodes = []string{
|
2017-02-28 04:30:44 -06:00
|
|
|
// Ethereum Foundation Go Bootnodes
|
2019-06-07 03:55:45 -05:00
|
|
|
"enode://d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666@18.138.108.67:30303", // bootnode-aws-ap-southeast-1-001
|
|
|
|
"enode://22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de@3.209.45.79:30303", // bootnode-aws-us-east-1-001
|
|
|
|
"enode://8499da03c47d637b20eee24eec3c356c9a2e6148d6fe25ca195c7949ab8ec2c03e3556126b0d7ed644675e78c4318b08691b7b57de10e5f0d40d05b09238fa0a@52.187.207.27:30303", // bootnode-azure-australiaeast-001
|
|
|
|
"enode://103858bdb88756c71f15e9b5e09b56dc1be52f0a5021d46301dbbfb7e130029cc9d0d6f73f693bc29b665770fff7da4d34f3c6379fe12721b5d7a0bcb5ca1fc1@191.234.162.198:30303", // bootnode-azure-brazilsouth-001
|
|
|
|
"enode://715171f50508aba88aecd1250af392a45a330af91d7b90701c436b618c86aaa1589c9184561907bebbb56439b8f8787bc01f49a7c77276c58c1b09822d75e8e8@52.231.165.108:30303", // bootnode-azure-koreasouth-001
|
|
|
|
"enode://5d6d7cd20d6da4bb83a1d28cadb5d409b64edf314c0335df658c1a54e32c7c4a7ab7823d57c39b6a757556e68ff1df17c748b698544a55cb488b52479a92b60f@104.42.217.25:30303", // bootnode-azure-westus-001
|
2022-02-23 04:33:14 -06:00
|
|
|
"enode://2b252ab6a1d0f971d9722cb839a42cb81db019ba44c08754628ab4a823487071b5695317c8ccd085219c3a03af063495b2f1da8d18218da2d6a82981b45e6ffc@65.108.70.101:30303", // bootnode-hetzner-hel
|
|
|
|
"enode://4aeb4ab6c14b23e2c4cfdce879c04b0748a20d8e9b59e25ded2a08143e265c6c25936e74cbc8e641e3312ca288673d91f2f93f8e277de3cfa444ecdaaf982052@157.90.35.166:30303", // bootnode-hetzner-fsn
|
2015-11-17 10:33:25 -06:00
|
|
|
}
|
|
|
|
|
2021-11-08 05:06:01 -06:00
|
|
|
// SepoliaBootnodes are the enode URLs of the P2P bootstrap nodes running on the
|
|
|
|
// Sepolia test network.
|
|
|
|
var SepoliaBootnodes = []string{
|
|
|
|
// geth
|
|
|
|
"enode://9246d00bc8fd1742e5ad2428b80fc4dc45d786283e05ef6edbd9002cbc335d40998444732fbe921cb88e1d2c73d1b1de53bae6a2237996e9bfe14f871baf7066@18.168.182.86:30303",
|
|
|
|
// besu
|
|
|
|
"enode://ec66ddcf1a974950bd4c782789a7e04f8aa7110a72569b6e65fcd51e937e74eed303b1ea734e4d19cfaec9fbff9b6ee65bf31dcb50ba79acce9dd63a6aca61c7@52.14.151.177:30303",
|
|
|
|
}
|
|
|
|
|
2017-05-04 04:36:20 -05:00
|
|
|
// RinkebyBootnodes are the enode URLs of the P2P bootstrap nodes running on the
|
|
|
|
// Rinkeby test network.
|
|
|
|
var RinkebyBootnodes = []string{
|
|
|
|
"enode://a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf@52.169.42.101:30303", // IE
|
2017-12-21 05:19:42 -06:00
|
|
|
"enode://b6b28890b006743680c52e64e0d16db57f28124885595fa03a562be1d2bf0f3a1da297d56b13da25fb992888fd556d4c1a27b1f39d531bde7de1921c90061cc6@159.89.28.211:30303", // AKASHA
|
2017-05-04 04:36:20 -05:00
|
|
|
}
|
|
|
|
|
2018-11-16 09:58:24 -06:00
|
|
|
// GoerliBootnodes are the enode URLs of the P2P bootstrap nodes running on the
|
|
|
|
// Görli test network.
|
|
|
|
var GoerliBootnodes = []string{
|
2019-07-08 18:05:01 -05:00
|
|
|
// Upstream bootnodes
|
2018-11-16 09:58:24 -06:00
|
|
|
"enode://011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a@51.141.78.53:30303",
|
|
|
|
"enode://176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b@13.93.54.137:30303",
|
|
|
|
"enode://46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291@94.237.54.114:30313",
|
2020-10-06 00:35:21 -05:00
|
|
|
"enode://b5948a2d3e9d486c4d75bf32713221c2bd6cf86463302339299bd227dc2e276cd5a1c7ca4f43a0e9122fe9af884efed563bd2a1fd28661f3b5f5ad7bf1de5949@18.218.250.66:30303",
|
2018-11-16 09:58:24 -06:00
|
|
|
|
|
|
|
// Ethereum Foundation bootnode
|
2020-01-31 07:12:19 -06:00
|
|
|
"enode://a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91@3.11.147.67:30303",
|
2020-10-06 00:35:21 -05:00
|
|
|
|
|
|
|
// Goerli Initiative bootnodes
|
2022-05-18 09:48:08 -05:00
|
|
|
"enode://d4f764a48ec2a8ecf883735776fdefe0a3949eb0ca476bd7bc8d0954a9defe8fea15ae5da7d40b5d2d59ce9524a99daedadf6da6283fca492cc80b53689fb3b3@46.4.99.122:32109",
|
2022-05-18 09:58:59 -05:00
|
|
|
"enode://d2b720352e8216c9efc470091aa91ddafc53e222b32780f505c817ceef69e01d5b0b0797b69db254c586f493872352f5a022b4d8479a00fc92ec55f9ad46a27e@88.99.70.182:30303",
|
2018-11-16 09:58:24 -06:00
|
|
|
}
|
|
|
|
|
2021-01-26 14:41:35 -06:00
|
|
|
var V5Bootnodes = []string{
|
|
|
|
// Teku team's bootnode
|
|
|
|
"enr:-KG4QOtcP9X1FbIMOe17QNMKqDxCpm14jcX5tiOE4_TyMrFqbmhPZHK_ZPG2Gxb1GE2xdtodOfx9-cgvNtxnRyHEmC0ghGV0aDKQ9aX9QgAAAAD__________4JpZIJ2NIJpcIQDE8KdiXNlY3AyNTZrMaEDhpehBDbZjM_L9ek699Y7vhUJ-eAdMyQW_Fil522Y0fODd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ZHCCIyg",
|
|
|
|
"enr:-Ku4QEWzdnVtXc2Q0ZVigfCGggOVB2Vc1ZCPEc6j21NIFLODSJbvNaef1g4PxhPwl_3kax86YPheFUSLXPRs98vvYsoBh2F0dG5ldHOIAAAAAAAAAACEZXRoMpC1MD8qAAAAAP__________gmlkgnY0gmlwhDZBrP2Jc2VjcDI1NmsxoQM6jr8Rb1ktLEsVcKAPa08wCsKUmvoQ8khiOl_SLozf9IN1ZHCCIyg",
|
|
|
|
}
|
|
|
|
|
2020-02-13 07:38:30 -06:00
|
|
|
const dnsPrefix = "enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@"
|
|
|
|
|
2020-05-22 06:46:34 -05:00
|
|
|
// KnownDNSNetwork returns the address of a public DNS-based node list for the given
|
|
|
|
// genesis hash and protocol. See https://github.com/ethereum/discv4-dns-lists for more
|
|
|
|
// information.
|
|
|
|
func KnownDNSNetwork(genesis common.Hash, protocol string) string {
|
|
|
|
var net string
|
|
|
|
switch genesis {
|
|
|
|
case MainnetGenesisHash:
|
|
|
|
net = "mainnet"
|
|
|
|
case RinkebyGenesisHash:
|
|
|
|
net = "rinkeby"
|
|
|
|
case GoerliGenesisHash:
|
|
|
|
net = "goerli"
|
2022-07-12 06:06:23 -05:00
|
|
|
case SepoliaGenesisHash:
|
|
|
|
net = "sepolia"
|
2020-05-22 06:46:34 -05:00
|
|
|
default:
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
return dnsPrefix + protocol + "." + net + ".ethdisco.net"
|
2020-02-13 07:38:30 -06:00
|
|
|
}
|