From 54fde4e09ed558bca030df7c27b376fe51065dae Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Wed, 16 Feb 2022 10:14:35 +0100 Subject: [PATCH] test fix: init nodes correctly --- tests/p2p/test_providers.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/p2p/test_providers.nim b/tests/p2p/test_providers.nim index 1453959..a01662d 100644 --- a/tests/p2p/test_providers.nim +++ b/tests/p2p/test_providers.nim @@ -19,7 +19,7 @@ import ./discv5_test_helper, libp2p/routing_record -proc initProvidersNode*( +proc initProvidersNode( rng: ref BrHmacDrbgContext, privKey: keys.PrivateKey, address: Address, @@ -27,14 +27,14 @@ proc initProvidersNode*( ProvidersProtocol = let d = initDiscoveryNode(rng, privKey, address, bootstrapRecords) - ProvidersProtocol(discovery: d) + newProvidersProtocol(d) proc bootstrapNodes(nodecount: int, bootnodes: openArray[Record], rng = keys.newRng()) : seq[ProvidersProtocol] = for i in 0..