Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Add log message for changed NodeID
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Mar 14, 2019
1 parent 1c03c6f commit 85952c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libp2p/NodeTable.cpp
Expand Up @@ -493,6 +493,8 @@ void NodeTable::onPacketReceived(
auto const& sourceId = pong.sourceid;
if (sourceId != nodeValidation.nodeID)
{
LOG(m_logger) << "Node " << _from << " changed public key from "
<< nodeValidation.nodeID << " to " << sourceId;
if (auto node = nodeEntry(nodeValidation.nodeID))
dropNode(move(node));
}
Expand Down

0 comments on commit 85952c9

Please sign in to comment.