neo icon indicating copy to clipboard operation
neo copied to clipboard

Strange logic about the default seed node

Open RichardBelsum opened this issue 2 years ago • 4 comments

When I built the private net, I removed the SeedList from config.json and it still connects to the seed node on startup

image

image

RichardBelsum avatar Jun 15 '22 09:06 RichardBelsum

If it's empty it will take the defaults one

shargon avatar Jun 15 '22 12:06 shargon

If you remove SeedList, it will take the default ones. But if you pass an empty array [], the seed list will be empty.

erikzhang avatar Jun 22 '22 04:06 erikzhang

If you remove SeedList, it will take the default ones. But if you pass an empty array [], the seed list will be empty.

That's not how it really works

https://user-images.githubusercontent.com/6625537/174960340-c132e562-2d59-4347-b33b-333aae9ced0b.mov

ixje avatar Jun 22 '22 06:06 ixje

It seems that empty array returns false in section.Exists()...

https://github.com/dotnet/extensions/issues/1341 (works as designed)

shargon avatar Jun 22 '22 20:06 shargon