From 07b2116f6bfa46a1a7b8fc643054b5233d24ce35 Mon Sep 17 00:00:00 2001 From: Kim De Mey Date: Tue, 7 Sep 2021 15:56:51 +0200 Subject: [PATCH] Another nim-eth bump and API changes fix (#821) --- fluffy/network/state/portal_protocol.nim | 8 ++++---- vendor/nim-eth | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fluffy/network/state/portal_protocol.nim b/fluffy/network/state/portal_protocol.nim index 4196bee09..22d43f98d 100644 --- a/fluffy/network/state/portal_protocol.nim +++ b/fluffy/network/state/portal_protocol.nim @@ -147,7 +147,8 @@ proc handleAdvertise(p: PortalProtocol, a: AdvertiseMessage): seq[byte] = encodeMessage(RequestProofsMessage(connectionId: connectionId, contentKeys: contentKeys)) -proc messageHandler*(protocol: TalkProtocol, request: seq[byte]): seq[byte] = +proc messageHandler*(protocol: TalkProtocol, request: seq[byte], + srcId: NodeId, srcUdpAddress: Address): seq[byte] = doAssert(protocol of PortalProtocol) let p = PortalProtocol(protocol) @@ -174,14 +175,13 @@ proc new*(T: type PortalProtocol, baseProtocol: protocol.Protocol, contentHandler: ContentHandler, dataRadius = UInt256.high()): T = let proto = PortalProtocol( + routingTable: RoutingTable.init(baseProtocol.localNode, DefaultBitsPerHop, + DefaultTableIpLimits, baseProtocol.rng), protocolHandler: messageHandler, baseProtocol: baseProtocol, dataRadius: dataRadius, handleContentRequest: contentHandler) - proto.routingTable.init(baseProtocol.localNode, DefaultBitsPerHop, - DefaultTableIpLimits, baseProtocol.rng) - proto.baseProtocol.registerTalkProtocol(PortalProtocolId, proto).expect( "Only one protocol should have this id") diff --git a/vendor/nim-eth b/vendor/nim-eth index bfadcfbfa..bea1f1c6a 160000 --- a/vendor/nim-eth +++ b/vendor/nim-eth @@ -1 +1 @@ -Subproject commit bfadcfbfaf18916a2ee1b77b896e0d01c6a0ca4f +Subproject commit bea1f1c6a12decdec31080b6b63fd40d5e8b6a35