Skip to content

Commit

Permalink
Merge branch 'enhance_datacache' of https://github.com/Qiao-Jin/neo i…
Browse files Browse the repository at this point in the history
…nto enhance_datacache
  • Loading branch information
Jin Qiao committed Apr 30, 2020
2 parents 6735e6a + 61181cb commit bbb66de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/neo/Network/P2P/LocalNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ public LocalNode(NeoSystem system)
singleton = this;

// Start dns resolution in parallel

for (int i = 0; i < ProtocolSettings.Default.SeedList.Length; i++)
string[] seedList = ProtocolSettings.Default.SeedList;
for (int i = 0; i < seedList.Length; i++)
{
int index = i;
Task.Run(() => SeedList[index] = GetIpEndPoint(ProtocolSettings.Default.SeedList[index]));
Task.Run(() => SeedList[index] = GetIpEndPoint(seedList[index]));
}
}
}
Expand Down

0 comments on commit bbb66de

Please sign in to comment.