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

Equihash: Pass each obtained solution to a callback for immediate checking #1146

Merged
merged 2 commits into from
Jul 30, 2016

Conversation

str4d
Copy link
Contributor

@str4d str4d commented Jul 27, 2016

Closes #1143

@str4d str4d self-assigned this Jul 27, 2016
@str4d str4d added A-pow Area: Proof-of-Work and mining S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 27, 2016
@daira
Copy link
Contributor

daira commented Jul 27, 2016

ACK.

@str4d str4d removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 29, 2016
@str4d
Copy link
Contributor Author

str4d commented Jul 29, 2016

@zkbot r+

@zkbot
Copy link
Contributor

zkbot commented Jul 29, 2016

📌 Commit 51eb527 has been approved by str4d

@zkbot
Copy link
Contributor

zkbot commented Jul 29, 2016

⌛ Testing commit 51eb527 with merge 55f232b...

@str4d
Copy link
Contributor Author

str4d commented Jul 29, 2016

Buildbot is hanging on RPC tests because of a bug in this commit.

}
return CheckProofOfWork(pblock->GetHash(), pblock->nBits, Params().GetConsensus());
};
if (EhBasicSolveUncancellable(n, k, curr_state, validBlock));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you spot the problem with this line? 🔎

This is a good example of an easily-overlooked change that can subtly change the execution logic. Or not-so-subtly in this case, thanks to the tests!

@ebfull
Copy link
Contributor

ebfull commented Jul 30, 2016

@zkbot r+ 4a0bdc9

@zkbot
Copy link
Contributor

zkbot commented Jul 30, 2016

⌛ Testing commit 4a0bdc9 with merge 4714ea1...

zkbot pushed a commit that referenced this pull request Jul 30, 2016
Equihash: Pass each obtained solution to a callback for immediate checking

Closes #1143
@ebfull
Copy link
Contributor

ebfull commented Jul 30, 2016

Yes, let's make brackets a requirement on all code. I wish we could lint it.

@zkbot
Copy link
Contributor

zkbot commented Jul 30, 2016

☀️ Test successful - zcash

@zkbot zkbot merged commit 4a0bdc9 into zcash:zc.v0.11.2.latest Jul 30, 2016
@str4d str4d deleted the 1143-equihash-solution-callback branch January 27, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-pow Area: Proof-of-Work and mining
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants