summaryrefslogtreecommitdiff
path: root/node/Topology.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-05 07:00:55 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-05 07:00:55 -0400
commit0e43e5e8f2eddd5768873350d12103f2684bedbf (patch)
treee4c49274cd6b1c717366514348ee5ba73b1b1a1c /node/Topology.cpp
parentb0187f44720fb675b99e6b6e57b660c6dfe8e464 (diff)
downloadinfinitytier-0e43e5e8f2eddd5768873350d12103f2684bedbf.tar.gz
infinitytier-0e43e5e8f2eddd5768873350d12103f2684bedbf.zip
Rest of work on new hashcash based identity scheme.
Diffstat (limited to 'node/Topology.cpp')
-rw-r--r--node/Topology.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/node/Topology.cpp b/node/Topology.cpp
index 0185147e..128a24d2 100644
--- a/node/Topology.cpp
+++ b/node/Topology.cpp
@@ -244,7 +244,7 @@ void Topology::threadMain()
* since this means either malicious intent or broken software. */
TRACE("verifying peer: %s",job.candidate->identity().address().toString().c_str());
- if ((job.candidate->identity())&&(!job.candidate->identity().address().isReserved())&&(job.candidate->identity().locallyValidate(false))) {
+ if ((job.candidate->identity())&&(!job.candidate->identity().address().isReserved())&&(job.candidate->identity().locallyValidate())) {
// Peer passes sniff test, so check to see if we've already got
// one with the same address.
@@ -271,11 +271,11 @@ void Topology::threadMain()
// existing claimant, and toss the imposter. If both verify, the
// one we already have wins.
- if (!job.candidate->identity().locallyValidate(true)) {
+ if (!job.candidate->identity().locallyValidate()) {
LOG("Topology: IMPOSTER %s rejected",job.candidate->identity().address().toString().c_str());
if (job.callback)
job.callback(job.arg,job.candidate,PEER_VERIFY_REJECTED_INVALID_IDENTITY);
- } else if (!existingPeer->identity().locallyValidate(true)) {
+ } else if (!existingPeer->identity().locallyValidate()) {
LOG("Topology: previous IMPOSTER %s displaced by valid identity!",job.candidate->identity().address().toString().c_str());
_reallyAddPeer(job.candidate);
if (job.callback)