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

The argc should be 3. #128

Closed
wants to merge 1 commit into from
Closed

Conversation

mattxlee
Copy link
Contributor

Otherwise vdf_client won't work properly.

@@ -314,7 +314,7 @@ int gcd_128_max_iter=3;
int main(int argc, char* argv[]) try
{
init_gmp();
if (argc != 4)
if (argc != 3)
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the catch!

In this case, the message is wrong, but argc is correct.

Chia blockchain calls the VDF process with 4 args:
https://github.com/Chia-Network/chia-blockchain/blob/main/chia/timelord/timelord_launcher.py#L54

so the usage would be ./vdf_client <host> <port> <proc_count>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see, and I will create a new pull request to fix the wrong message and this one should be closed.

@mattxlee mattxlee closed this Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants