@@ -2675,7 +2675,10 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
2675
2675
const CNetMsgMaker msgMaker (pfrom.GetCommonVersion ());
2676
2676
2677
2677
if (msg_type == NetMsgType::VERACK) {
2678
- if (pfrom.fSuccessfullyConnected ) return ;
2678
+ if (pfrom.fSuccessfullyConnected ) {
2679
+ LogPrint (BCLog::NET, " ignoring redundant verack message from peer=%d\n " , pfrom.GetId ());
2680
+ return ;
2681
+ }
2679
2682
2680
2683
if (!pfrom.IsInboundConn ()) {
2681
2684
LogPrintf (" New outbound peer connected: version: %d, blocks=%d, peer=%d%s (%s)\n " ,
@@ -2756,7 +2759,11 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
2756
2759
if (!State (pfrom.GetId ())->m_wtxid_relay ) {
2757
2760
State (pfrom.GetId ())->m_wtxid_relay = true ;
2758
2761
g_wtxid_relay_peers++;
2762
+ } else {
2763
+ LogPrint (BCLog::NET, " ignoring duplicate wtxidrelay from peer=%d\n " , pfrom.GetId ());
2759
2764
}
2765
+ } else {
2766
+ LogPrint (BCLog::NET, " ignoring wtxidrelay due to old common version=%d from peer=%d\n " , pfrom.GetCommonVersion (), pfrom.GetId ());
2760
2767
}
2761
2768
return ;
2762
2769
}
@@ -2792,6 +2799,7 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
2792
2799
s >> vAddr;
2793
2800
2794
2801
if (!pfrom.RelayAddrsWithConn ()) {
2802
+ LogPrint (BCLog::NET, " ignoring %s message from %s peer=%d\n " , msg_type, pfrom.ConnectionTypeAsString (), pfrom.GetId ());
2795
2803
return ;
2796
2804
}
2797
2805
if (vAddr.size () > MAX_ADDR_TO_SEND)
0 commit comments