From c7521be1ca6c04bdd0cb5fa0c88a25a0a39abb77 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Mon, 4 May 2026 18:37:02 +0400 Subject: [PATCH] Use DhtMode --- codexdht/private/eth/p2p/discoveryv5/protocol.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codexdht/private/eth/p2p/discoveryv5/protocol.nim b/codexdht/private/eth/p2p/discoveryv5/protocol.nim index fadf9b2..ac4bb4d 100644 --- a/codexdht/private/eth/p2p/discoveryv5/protocol.nim +++ b/codexdht/private/eth/p2p/discoveryv5/protocol.nim @@ -1233,9 +1233,9 @@ proc open*(d: Protocol) {.raises: [Defect, CatchableError].} = protocolHandler: proc(p: TalkProtocol, request: seq[byte], fromId: NodeId, fromUdpAddress: Address): seq[byte] {.raises: [].} = if d.clientMode: - @[byte 1] + @[DhtMode.Client.byte] else: - @[byte 0] + @[DhtMode.Server.byte] ) d.registerTalkProtocol(clientModeProtocolId, clientModeProtocol).expect( "Only one protocol should have this id"