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 12, 2019
1 parent c5ef0dd commit fe2eaab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libp2p/NodeTable.cpp
Expand Up @@ -483,6 +483,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 fe2eaab

Please sign in to comment.