From 178da7c6a94718389e7192d87df5ee42e7223bc3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= <peterke@gmail.com>
Date: Mon, 5 Sep 2016 19:07:57 +0300
Subject: mobile: initial wrappers for mobile support

---
 p2p/discover/node.go | 4 ++--
 p2p/server.go        | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'p2p')

diff --git a/p2p/discover/node.go b/p2p/discover/node.go
index 139a95d80..eec0bae0c 100644
--- a/p2p/discover/node.go
+++ b/p2p/discover/node.go
@@ -35,7 +35,7 @@ import (
 	"github.com/ethereum/go-ethereum/crypto/secp256k1"
 )
 
-const nodeIDBits = 512
+const NodeIDBits = 512
 
 // Node represents a host on the network.
 // The fields of Node may not be modified.
@@ -209,7 +209,7 @@ func MustParseNode(rawurl string) *Node {
 
 // NodeID is a unique identifier for each node.
 // The node identifier is a marshaled elliptic curve public key.
-type NodeID [nodeIDBits / 8]byte
+type NodeID [NodeIDBits / 8]byte
 
 // NodeID prints as a long hexadecimal number.
 func (n NodeID) String() string {
diff --git a/p2p/server.go b/p2p/server.go
index 649fbfb82..1e571abf1 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -748,7 +748,7 @@ type NodeInfo struct {
 	Protocols  map[string]interface{} `json:"protocols"`
 }
 
-// Info gathers and returns a collection of metadata known about the host.
+// NodeInfo gathers and returns a collection of metadata known about the host.
 func (srv *Server) NodeInfo() *NodeInfo {
 	node := srv.Self()
 
-- 
cgit v1.2.3