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

etclabscore/cpp-etchash can not search solution by search_light #3

Open
caiqinghua opened this issue May 8, 2021 · 0 comments
Open

Comments

@caiqinghua
Copy link

int epoch_number = block_number / 30000;
const struct ethash_epoch_context *context = ethash_get_global_epoch_context(epoch_number);
ethash::search_result ethash_result = ethash::search_light(*context, header_hash, boundary, nonce, 1);
if (!ethash_result.solution_found) {
return LOW_DIFFICULTY;
}

The code can search solution for ethereum, but can not for etc node and cpp-etchash code. Please help me
@q9f @iquidus

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

No branches or pull requests

1 participant