fix: if a peer completed the handshake, but our node is stopped, end the peer and abort
This commit is contained in:
parent
b3e690b0d4
commit
6cc0bd6500
|
@ -11,6 +11,10 @@ export default async function (
|
|||
message: SignedMessage,
|
||||
verifyId: boolean,
|
||||
) {
|
||||
if (!node.started) {
|
||||
peer.end();
|
||||
return;
|
||||
}
|
||||
const p2p = node.services.p2p;
|
||||
const challenge = data.unpackBinary();
|
||||
|
||||
|
|
Loading…
Reference in New Issue