diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-09-06 00:07:57 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-11-14 23:56:58 +0800 |
commit | 178da7c6a94718389e7192d87df5ee42e7223bc3 (patch) | |
tree | 010f49656b5d1656cf24a4ff9bac35788dd9959f /p2p/discover/node.go | |
parent | d89ea3e6f90c32a97bad58b82a15af0d81f4250e (diff) | |
download | dexon-178da7c6a94718389e7192d87df5ee42e7223bc3.tar dexon-178da7c6a94718389e7192d87df5ee42e7223bc3.tar.gz dexon-178da7c6a94718389e7192d87df5ee42e7223bc3.tar.bz2 dexon-178da7c6a94718389e7192d87df5ee42e7223bc3.tar.lz dexon-178da7c6a94718389e7192d87df5ee42e7223bc3.tar.xz dexon-178da7c6a94718389e7192d87df5ee42e7223bc3.tar.zst dexon-178da7c6a94718389e7192d87df5ee42e7223bc3.zip |
mobile: initial wrappers for mobile support
Diffstat (limited to 'p2p/discover/node.go')
-rw-r--r-- | p2p/discover/node.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |