Fixed "Access is denied." running Mainnet+Testnet #654
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
Other information:
Fixes "Access is denied." when trying to run Testnet on the same Windows 11 machine as Mainnet. (Two go-vite executables).
The cause of the problem was both executables try to create the same IPC pipe with same name.
The solution was to make sure each executable has it's own pipe name. This is now done by adding a underscore and NetSelect string at the back of the pipe name.
This should now allow running mainnet and testnet side by side on same machine.
Unfortunately I cannot test it any further, because the testnet seems to be done ? Or at least the seed nodes/json/server is error 404.
I hope this gets fixed so I can run testnet as well, as well as others.
I am not sure what the effect of this could be on other operating systems, not sure if this code is supposed to be cross-platform, this should be tested by others first before applieing this PR.