-
Notifications
You must be signed in to change notification settings - Fork 7
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
Invalid proofs #15
Invalid proofs #15
Conversation
I also added some manual tests (see #11) |
bc97cb3
to
f65ec95
Compare
ba25678
to
54a38ff
Compare
54a38ff
to
6ae6b50
Compare
@@ -190,26 +186,19 @@ contract ProvethVerifier { | |||
bytes32 blockHash, | |||
bytes proofBlob | |||
) internal returns (uint8 result, uint256 index, Transaction memory t) { | |||
result = TX_PROOF_RESULT_INVALID; |
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.
Not sure why you're getting rid of this? I generally favor descriptive names to returning an integer, but it's probably fine either way
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.
I got rid of TX_PROOF_RESULT_INVALID
, since we now revert
on invalid proofs.
But I could probably kick out
result = 0;
index = 0;
since that's the default anyways.
Okay, reviewed code and ran tests everything seems good to me to merge. |
This pull requests depends on #14
It currently implements the first part of #9, i.e. reverting on invalid proofs.