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

Commit 85952c9

Browse files
committed
Add log message for changed NodeID
1 parent 1c03c6f commit 85952c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libp2p/NodeTable.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,8 @@ void NodeTable::onPacketReceived(
493493
auto const& sourceId = pong.sourceid;
494494
if (sourceId != nodeValidation.nodeID)
495495
{
496+
LOG(m_logger) << "Node " << _from << " changed public key from "
497+
<< nodeValidation.nodeID << " to " << sourceId;
496498
if (auto node = nodeEntry(nodeValidation.nodeID))
497499
dropNode(move(node));
498500
}

0 commit comments

Comments
 (0)