mobile: remove enodes type declaration

This commit is contained in:
Marius van der Wijden 2020-04-22 09:25:45 +02:00
parent ffea2e9151
commit 846afc4086
2 changed files with 3 additions and 3 deletions

View file

@ -45,7 +45,7 @@ import (
// complexity.
type NodeConfig struct {
// Bootstrap nodes used to establish connectivity with the rest of the network.
BootstrapNodes []Enode
BootstrapNodes []*Enode
// MaxPeers is the maximum number of peers that can be connected. If this is
// set to zero, then only the configured static and trusted peers can connect.

View file

@ -61,8 +61,8 @@ func GoerliGenesis() string {
// FoundationBootnodes returns the enode URLs of the P2P bootstrap nodes operated
// by the foundation running the V5 discovery protocol.
func FoundationBootnodes() []Enode {
nodes := make([]Enode, len(params.DiscoveryV5Bootnodes))
func FoundationBootnodes() []*Enode {
nodes := make([]*Enode, len(params.DiscoveryV5Bootnodes))
for i, url := range params.DiscoveryV5Bootnodes {
nodes[i].node = discv5.MustParseNode(url)
}