Skip to content

Commit 62c1054

Browse files
authored
fix: SessionService should send challenge even with active challenge (#311)
1 parent c6a8739 commit 62c1054

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/discv5/src/session/service.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,6 @@ export class SessionService extends (EventEmitter as { new (): StrictEventEmitte
275275
public sendChallenge(nodeAddr: INodeAddress, nonce: Uint8Array, remoteEnr: ENR | null): void {
276276
const nodeAddrStr = nodeAddressToString(nodeAddr);
277277

278-
if (this.activeChallenges.peek(nodeAddrStr)) {
279-
log("WHOAREYOU already sent. %o", nodeAddr);
280-
return;
281-
}
282-
283278
// Ignore this request if the session is already established
284279
if (this.sessions.get(nodeAddrStr)) {
285280
log("Session already established. WHOAREYOU not sent to %o", nodeAddr);

0 commit comments

Comments
 (0)