Skip to content

Commit c2c63e7

Browse files
committed
fix: fixed bug in parseSeedNodes
1 parent ba0ad5c commit c2c63e7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/nodes/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,10 @@ function parseSeedNodes(data: any): [SeedNodes, boolean] {
501501
const nodePort = seedNodeUrl.port;
502502
try {
503503
ids.parseNodeId(nodeIdEncoded);
504-
seedNodes[nodeIdEncoded] = {
505-
host: networkUtils.parseHostOrHostname(nodeHostOrHostname),
506-
port: networkUtils.parsePort(nodePort),
507-
};
504+
seedNodes[nodeIdEncoded] = [
505+
networkUtils.parseHostOrHostname(nodeHostOrHostname),
506+
networkUtils.parsePort(nodePort),
507+
];
508508
} catch (e) {
509509
if (e instanceof validationErrors.ErrorParse) {
510510
throw new validationErrors.ErrorParse(

0 commit comments

Comments
 (0)