-
Notifications
You must be signed in to change notification settings - Fork 437
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
Engine url parameters #4358
Engine url parameters #4358
Conversation
@@ -32,7 +32,7 @@ public JsonRpcUrl(string scheme, string host, int port, RpcEndpoint rpcEndpoint, | |||
Host = host; | |||
Port = port; | |||
RpcEndpoint = rpcEndpoint; | |||
EnabledModules = enabledModules; | |||
EnabledModules = enabledModules.Select(name => name.ToLower()).ToArray(); |
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.
could you explain why we're changing it?
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.
In some plases we check that "engine"(in lower case) module in this list. I thought it might cause similar problems in the future, so a better solution is to change it here
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.
Wouldn't it be better then to do: EnabledModules = new HashSet<string>(enabledModules, StringComparer.InvariantCultureIgnoreCase)
return; | ||
} | ||
JsonRpcUrl url = new(Uri.UriSchemeHttp, _jsonRpcConfig.EngineHost, _jsonRpcConfig.EnginePort.Value, | ||
RpcEndpoint.Http, true, _jsonRpcConfig.EngineEnabledModules.Append("engine").ToArray()); |
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.
Minor: using string "engine" could be painful in case of refacotring
|
||
public static IEnumerable<string> DefaultEngineModules { get; } = new List<string>() | ||
{ | ||
Net, |
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.
We could add engine here
@@ -2,14 +2,16 @@ | |||
"Init": { | |||
"IsMining": true, | |||
"WebSocketsEnabled": true, | |||
"ChainSpecPath": "chainspec/catalyst.json", | |||
"ChainSpecPath": "chainspec/catalyst.json", |
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.
catalyst can be removed
@@ -20,8 +20,7 @@ | |||
"Timeout": 20000, | |||
"Host": "127.0.0.1", | |||
"Port": 8545, | |||
"EnabledModules": ["Eth", "Subscribe", "Trace", "TxPool", "Web3", "Personal", "Proof", "Net", "Parity", "Health", "Debug"], |
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.
Please add engine port
@@ -28,8 +28,7 @@ | |||
"Timeout": 20000, | |||
"Host": "127.0.0.1", | |||
"Port": 8545, | |||
"EnabledModules": ["Eth", "Subscribe", "Trace", "TxPool", "Web3", "Personal", "Proof", "Net", "Parity", "Health", "Debug"], | |||
"AdditionalRpcUrls": ["http://localhost:8551|http;ws|net;eth;subscribe;engine;web3;client"] |
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.
please add engine port
Fixes | Closes | Resolves #
Changes:
Types of changes
What types of changes does your code introduce?
Put an
x
in the boxes that applyTesting
Requires testing
In case you checked yes, did you write tests??
Comments about testing , should you have some (optional)
I've changed configuration files. It may cause problems