summaryrefslogtreecommitdiff
path: root/node/Peer.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-01-12 13:17:30 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-01-12 13:17:30 -0800
commit3883ac08c7736c9695f100c7937af089e00359d9 (patch)
treef430fe0c02166e8ca7d6b6c410308d6b2d30383c /node/Peer.cpp
parent740eb6ebc4c4af19f9d40ed03e75ba0a0021dc37 (diff)
downloadinfinitytier-3883ac08c7736c9695f100c7937af089e00359d9.tar.gz
infinitytier-3883ac08c7736c9695f100c7937af089e00359d9.zip
Docs and cleanup.
Diffstat (limited to 'node/Peer.cpp')
-rw-r--r--node/Peer.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp
index bcfda722..ca194f8d 100644
--- a/node/Peer.cpp
+++ b/node/Peer.cpp
@@ -183,7 +183,6 @@ void Peer::received(
TRACE("got %s via unknown path %s(%s), confirming...",Packet::verbString(verb),_id.address().toString().c_str(),remoteAddr.toString().c_str());
if ( (_vProto >= 5) && ( !((_vMajor == 1)&&(_vMinor == 1)&&(_vRevision == 0)) ) ) {
- // 1.1.1 and newer nodes support ECHO, which is smaller -- but 1.1.0 has a bug so use HELLO there too
Packet outp(_id.address(),RR->identity.address(),Packet::VERB_ECHO);
outp.armor(_key,true);
RR->node->putPacket(localAddr,remoteAddr,outp.data(),outp.size());
@@ -498,7 +497,6 @@ bool Peer::_checkPath(Path &p,const uint64_t now)
TRACE("%s(%s) does not seem to be answering in a timely manner, checking if dead (probation == %u)",_id.address().toString().c_str(),p.address().toString().c_str(),p.probation());
if ( (_vProto >= 5) && ( !((_vMajor == 1)&&(_vMinor == 1)&&(_vRevision == 0)) ) ) {
- // 1.1.1 and newer nodes support ECHO, which is smaller -- but 1.1.0 has a bug so use HELLO there too
Packet outp(_id.address(),RR->identity.address(),Packet::VERB_ECHO);
outp.armor(_key,true);
p.send(RR,outp.data(),outp.size(),now);