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
[easy] CoreNode: Fix warning #10891
[easy] CoreNode: Fix warning #10891
Conversation
} | ||
|
||
public EndPoint P2pEndPoint { get; } | ||
public EndPoint RpcEndPoint { get; } | ||
public IRPCClient RpcClient { get; private set; } | ||
public IRPCClient RpcClient { get; } |
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.
The property is required to be passed in the ctor effectively.
@@ -95,13 +96,13 @@ public static async Task<CoreNode> CreateAsync(CoreNodeParams coreNodeParams, Ca | |||
throw new InvalidOperationException($"Failed to get RPC endpoint on {rpcHost}:{rpcPort}."); | |||
} | |||
|
|||
CoreNode coreNode = new(coreNodeParams.DataDir, coreNodeParams.Network, coreNodeParams.MempoolService, coreConfig, p2pEndPoint, rpcEndPoint); |
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.
Just moved under var rpcClient = new RPCClient(
declaration.
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.
tACK on RegTest, LGTM
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.
LGTM
While trying to run tests in #9695, I was debugging why they did not run for me. This PR just fixes a warning and arguably it's easier to understand the code.