mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 15:41:44 +02:00
Merge pull request #11156
f320abd p2p: use connection state to detect duplicate handshakes (selsta)
ACKs: j-berman, jpk68
This commit is contained in:
@@ -2697,9 +2697,9 @@ namespace nodetool
|
||||
return 1;
|
||||
}
|
||||
|
||||
if(context.peer_id)
|
||||
if(context.handshake_complete())
|
||||
{
|
||||
LOG_WARNING_CC(context, "COMMAND_HANDSHAKE came, but seems that connection already have associated peer_id (double COMMAND_HANDSHAKE?)");
|
||||
LOG_WARNING_CC(context, "COMMAND_HANDSHAKE came, but connection already completed a handshake (double COMMAND_HANDSHAKE?)");
|
||||
drop_connection(context);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user