From 846afc40868c52921245cc08e64a15c2906a27c5 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Wed, 22 Apr 2020 09:25:45 +0200 Subject: [PATCH] mobile: remove enodes type declaration --- mobile/geth.go | 2 +- mobile/params.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/geth.go b/mobile/geth.go index da18dd17cb..0a0a66368b 100644 --- a/mobile/geth.go +++ b/mobile/geth.go @@ -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. diff --git a/mobile/params.go b/mobile/params.go index b4a7a7a613..2bd4ee6892 100644 --- a/mobile/params.go +++ b/mobile/params.go @@ -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) }