-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unnecessary default seedlist #2773
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why they should be removed?
To be honest, i have no idea what the point of these settings since we already have everything in the |
I agree with OP to remove this behaviour. It is counter intuitive and had me scratching my head multiple times in the past. If The whole hardcoding default config seems like some attempt to avoid null pointer exceptions due to invalid configs (iirc from the past). It shouldn't be that hard to check the config against a JSON schema and shutdown in case of an invalid config instead of doing this default thing. |
But not worked as this behaviour, see: #2772 (comment) |
This ☝️ @shargon can you explain what are you're trying to say with this comment? We can read that the behaviour is "by design" according to the dotnet team, but I don't think the current behaviour in NEO core is the intention by the NEO team. At least the way I read Erik's comment is "when the whole |
I think it's necessary to make default seedlist empty, please move on. @erikzhang @shargon |
What's the sense of remove the seedlist but not the |
Actually I don't care about any other parameters because in no sense I need to make it empty on my config.json for privatenet, but seedlist has this sense. When I start a single consensus and a seed node or you call it operation node/debug node/terminal node, I input command, deploy contract on it and it doesn't need to connect any peers. However, it connects to mainnet seeds finally. |
@ixje Maybe we can temporarily set seedlist like |
That's a workaround similar to using a non-existent ip address, that is not a solution in my opinion. |
I think we need to restrict that in Neo.Json to re-deserialize settings for all empty array to keep all in the same behaviour. |
Let's handle this one for 3.7.0, either we fix it or not. It's a relatively simple thing, but some people find the default behavior annoying. And we have this PR for a long long time without any decision which is bad. My take on it is that it should be merged, please vote 👍 or 👎 below and we either merge it (well, it needs a rebase now) or close it next week. @AnnaShaleva @shargon @vncoelho @superboyiii |
I agree to merge this PR, but at the same time I agree with #2773 (comment). If we're removing the default SeedList (mainnet's one) and suppose that the default configuration can be used for any network (testnet, privnet), then other mainnet-related fields also should be removed (mainnet standby committee, magic, etc.). Otherwise we have kind of "mixed" configuration that includes both mainnet-related things and truly "default" things. But it's a nitpicking and not critical. |
agree with @AnnaShaleva |
@satoshichou, can you rebase/extend it slightly? |
Are we really asking somebody to update his/her PR after almost 1.5 years? Looking at the persons profile shows no GitHub activity since creating this PR. I say just merge this and deal with Anna's suggestions in a new PR. |
Closed by inactivity and moved to #2980 |
You never know. At least it was important for me to try updating/merging the PR from the original author. If it can't be done, OK, no problem, but we have tried. |
I'm always there, the shadow 👻 . Really good to see this moving forward. Neo is awesome! @roman-khimov @ixje @shargon @vncoelho |
laugh one's ass off |
You never know when I will be back. May the force be with you. 😏 |
@satoshichou please check #2980 |
Yeah, already saw this. Good moving. |
@satoshichou feel free to open again the pull request! |
Yours is enough! |
Close #2772