diff options
author | Felix Lange <fjl@twurst.com> | 2016-11-15 01:10:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-15 01:10:03 +0800 |
commit | 8dcea0ac0785c92df84d55b8322281e12189d8fb (patch) | |
tree | 18d9c033f86af4eda374261e4c0a165ac2c733c0 /p2p/discover/node.go | |
parent | d89ea3e6f90c32a97bad58b82a15af0d81f4250e (diff) | |
parent | dfe79cc7845d94d14c2bc091c7eeac082f6b1e90 (diff) | |
download | dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.gz dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.bz2 dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.lz dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.xz dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.zst dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.zip |
Merge pull request #2977 from karalabe/initial-mobile-suport
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 { |