diff options
author | Felix Lange <fjl@twurst.com> | 2015-02-12 18:59:52 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-02-13 18:39:31 +0800 |
commit | 82f0bd9009d8d577c86e800e9673a1972117113d (patch) | |
tree | 9ff7257fa03b2b17650c9453d121a27937e36af9 /p2p/discover/node.go | |
parent | d0a2e655c9599f462bb20bd49bc69b8e1e330a21 (diff) | |
download | dexon-82f0bd9009d8d577c86e800e9673a1972117113d.tar dexon-82f0bd9009d8d577c86e800e9673a1972117113d.tar.gz dexon-82f0bd9009d8d577c86e800e9673a1972117113d.tar.bz2 dexon-82f0bd9009d8d577c86e800e9673a1972117113d.tar.lz dexon-82f0bd9009d8d577c86e800e9673a1972117113d.tar.xz dexon-82f0bd9009d8d577c86e800e9673a1972117113d.tar.zst dexon-82f0bd9009d8d577c86e800e9673a1972117113d.zip |
p2p/discover: code review fixes
Diffstat (limited to 'p2p/discover/node.go')
-rw-r--r-- | p2p/discover/node.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/p2p/discover/node.go b/p2p/discover/node.go index a49a2f547..c6d2e9766 100644 --- a/p2p/discover/node.go +++ b/p2p/discover/node.go @@ -18,6 +18,8 @@ import ( "github.com/ethereum/go-ethereum/rlp" ) +const nodeIDBits = 512 + // Node represents a host on the network. type Node struct { ID NodeID @@ -135,7 +137,7 @@ func (n *Node) DecodeRLP(s *rlp.Stream) (err error) { // NodeID is a unique identifier for each node. // The node identifier is a marshaled elliptic curve public key. -type NodeID [512 / 8]byte +type NodeID [nodeIDBits / 8]byte // NodeID prints as a long hexadecimal number. func (n NodeID) String() string { |