Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@aristotleee
Copy link

No description provided.

- Challenge crowdfunding
- remove feature
- restore TODO
- use Result for chunker disprove witness
// 1. if 'wrong_proof' is correct, return none
if wrong_proof.valid_proof() {
return None;
return Err(Error::Chunker(ChunkerError::WrongProof));

Choose a reason for hiding this comment

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

This is a different error case than the 'wrong proof' below. This is a wrong proof being actually valid when it shouldn't be. So the name of the error should be ChunkerError::ValidProof or something like this.

Copy link
Author

Choose a reason for hiding this comment

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

ValidProof doesn't sound like an error, so I change it to NotWrongProof


#[derive(Debug)]
pub enum ChunkerError {
WrongProof,
Copy link

@franklynot franklynot Jan 15, 2025

Choose a reason for hiding this comment

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

I suggest InvalidProof.

@aristotleee aristotleee merged commit 48c062e into txn-relay-fee Jan 16, 2025
1 of 2 checks passed
@aristotleee aristotleee deleted the txn-relay-fee-groth16-cache-fix-18 branch January 16, 2025 02:36
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.

3 participants