diff --git a/src/messages/signedMessages/handshakeDone.ts b/src/messages/signedMessages/handshakeDone.ts index 7830bcf..fd81c71 100644 --- a/src/messages/signedMessages/handshakeDone.ts +++ b/src/messages/signedMessages/handshakeDone.ts @@ -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();