From c2c63e76b2b3b089270222ad7d8f958403e5fda6 Mon Sep 17 00:00:00 2001 From: Brian Botha Date: Wed, 8 Jan 2025 14:20:39 +1100 Subject: [PATCH] fix: fixed bug in `parseSeedNodes` --- src/nodes/utils.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nodes/utils.ts b/src/nodes/utils.ts index b65c953dd..76ffd66e1 100644 --- a/src/nodes/utils.ts +++ b/src/nodes/utils.ts @@ -501,10 +501,10 @@ function parseSeedNodes(data: any): [SeedNodes, boolean] { const nodePort = seedNodeUrl.port; try { ids.parseNodeId(nodeIdEncoded); - seedNodes[nodeIdEncoded] = { - host: networkUtils.parseHostOrHostname(nodeHostOrHostname), - port: networkUtils.parsePort(nodePort), - }; + seedNodes[nodeIdEncoded] = [ + networkUtils.parseHostOrHostname(nodeHostOrHostname), + networkUtils.parsePort(nodePort), + ]; } catch (e) { if (e instanceof validationErrors.ErrorParse) { throw new validationErrors.ErrorParse(