github.com/electroneum/electroneum-sc@v0.0.0-20230105223411-3bc1d078281e/params/bootnodes.go (about)

     1  // Copyright 2015 The go-ethereum Authors
     2  // This file is part of the go-ethereum library.
     3  //
     4  // The go-ethereum 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 go-ethereum 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 go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
    16  
    17  package params
    18  
    19  import "github.com/electroneum/electroneum-sc/common"
    20  
    21  // MainnetBootnodes are the enode URLs of the P2P bootstrap nodes running on
    22  // the main Electroneum network.
    23  var MainnetBootnodes = []string{}
    24  
    25  // StagenetBootnodes are the enode URLs of the P2P bootstrap nodes running on
    26  // the stage Electroneum Testnet network.
    27  var StagenetBootnodes = []string{}
    28  
    29  // TestnetBootnodes are the enode URLs of the P2P bootstrap nodes running on
    30  // the main Electroneum Testnet network.
    31  var TestnetBootnodes = []string{
    32  	"enode://973089afc9ae8141a47b211cb48979bb1fd2cbf5f24c498b4aab93a7cee5fcb996c7badac0d3b8414608b113bb12b9b997ac5bea35dd7842149a3182e42dfe18@46.137.237.72:30303",
    33  }
    34  
    35  var V5Bootnodes = []string{}
    36  
    37  //const dnsPrefix = "enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@"
    38  
    39  // KnownDNSNetwork returns the address of a public DNS-based node list for the given
    40  // genesis hash and protocol. See https://github.com/ethereum/discv4-dns-lists for more
    41  // information.
    42  func KnownDNSNetwork(genesis common.Hash, protocol string) string {
    43  	/*var net string
    44  	switch genesis {
    45  	case MainnetGenesisHash:
    46  		net = "mainnet"
    47  	case StagenetGenesisHash:
    48  		net = "stagenet"
    49  	case TestnetGenesisHash:
    50  		net = "testnet"
    51  	default:
    52  		return ""
    53  	}
    54  	return dnsPrefix + protocol + "." + net + ".ethdisco.net"*/
    55  	return ""
    56  }