Skip to content

Commit

Permalink
fix: fixed bug in parseSeedNodes
Browse files Browse the repository at this point in the history
  • Loading branch information
tegefaulkes committed Jan 8, 2025
1 parent ba0ad5c commit c2c63e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/nodes/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c2c63e7

Please sign in to comment.