github.com/aidoskuneen/adk-node@v0.0.0-20220315131952-2e32567cb7f4/params/bootnodes.go (about) 1 // Copyright 2021 The adkgo Authors 2 // This file is part of the adkgo library. 3 // 4 // The adkgo library is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU Lesser General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // The adkgo library is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU Lesser General Public License for more details. 13 // 14 // You should have received a copy of the GNU Lesser General Public License 15 // along with the adkgo library. If not, see <http://www.gnu.org/licenses/>. 16 17 package params 18 19 import "github.com/aidoskuneen/adk-node/common" 20 21 // MainnetBootnodes are the enode URLs of the P2P bootstrap nodes running on 22 // the main adkgo Ref Ethereum network. 23 var MainnetBootnodes = []string{ 24 } 25 26 // RopstenBootnodes are the enode URLs of the P2P bootstrap nodes running on the 27 // Ropsten test network. 28 var RopstenBootnodes = []string{ 29 } 30 31 // RinkebyBootnodes are the enode URLs of the P2P bootstrap nodes running on the 32 // Rinkeby test network. 33 var RinkebyBootnodes = []string{ 34 } 35 36 // GoerliBootnodes are the enode URLs of the P2P bootstrap nodes running on the 37 // Görli test network. 38 var GoerliBootnodes = []string{ 39 } 40 41 var V5Bootnodes = []string{ 42 } 43 44 //const dnsPrefix = "enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@" 45 46 // KnownDNSNetwork returns the address of a public DNS-based node list for the given 47 // genesis hash and protocol. See https://github.com/aidoskuneen/discv4-dns-lists for more 48 // information. 49 func KnownDNSNetwork(genesis common.Hash, protocol string) string { 50 // var net string 51 // switch genesis { 52 // case MainnetGenesisHash: 53 // net = "mainnet" 54 // case RopstenGenesisHash: 55 // net = "ropsten" 56 // case RinkebyGenesisHash: 57 // net = "rinkeby" 58 // case GoerliGenesisHash: 59 // net = "goerli" 60 // default: 61 return "" 62 //} 63 //return dnsPrefix + protocol + "." + net + ".ethdisco.net" 64 }