Skip to content
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

Merged

Conversation

kiminuo
Copy link
Collaborator

@kiminuo kiminuo commented Jun 14, 2023

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.

}

public EndPoint P2pEndPoint { get; }
public EndPoint RpcEndPoint { get; }
public IRPCClient RpcClient { get; private set; }
public IRPCClient RpcClient { get; }
Copy link
Collaborator Author

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);
Copy link
Collaborator Author

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.

@kiminuo kiminuo requested a review from yahiheb June 14, 2023 08:22
@kiminuo kiminuo marked this pull request as ready for review June 14, 2023 08:22
Copy link
Collaborator

@adamPetho adamPetho left a 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

Copy link
Collaborator

@yahiheb yahiheb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kiminuo kiminuo merged commit 5d33db1 into zkSNACKs:master Jun 14, 2023
9 checks passed
@kiminuo kiminuo deleted the feature/2023-06-14-CoreNode-fix-warning branch June 14, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants