mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
mobile: remove enodes type declaration
This commit is contained in:
parent
ffea2e9151
commit
846afc4086
2 changed files with 3 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ import (
|
||||||
// complexity.
|
// complexity.
|
||||||
type NodeConfig struct {
|
type NodeConfig struct {
|
||||||
// Bootstrap nodes used to establish connectivity with the rest of the network.
|
// 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
|
// 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.
|
// set to zero, then only the configured static and trusted peers can connect.
|
||||||
|
|
|
||||||
|
|
@ -61,8 +61,8 @@ func GoerliGenesis() string {
|
||||||
|
|
||||||
// FoundationBootnodes returns the enode URLs of the P2P bootstrap nodes operated
|
// FoundationBootnodes returns the enode URLs of the P2P bootstrap nodes operated
|
||||||
// by the foundation running the V5 discovery protocol.
|
// by the foundation running the V5 discovery protocol.
|
||||||
func FoundationBootnodes() []Enode {
|
func FoundationBootnodes() []*Enode {
|
||||||
nodes := make([]Enode, len(params.DiscoveryV5Bootnodes))
|
nodes := make([]*Enode, len(params.DiscoveryV5Bootnodes))
|
||||||
for i, url := range params.DiscoveryV5Bootnodes {
|
for i, url := range params.DiscoveryV5Bootnodes {
|
||||||
nodes[i].node = discv5.MustParseNode(url)
|
nodes[i].node = discv5.MustParseNode(url)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue