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

XDM: Accept the fraud proof if the bad receipt marks a non XDM containing bundle as invalid bundle with InvalidXDM #2666

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

vedhavyas
Copy link
Contributor

This PR fixes fraud proof verification for false invalid XDM case.

If a bad receipt marks a bundle with non-XDM extrinsic as Invalid bundle with extrinsic as InvalidXDM, verifier was rejecting the fraud proof. This change will accept the fraud proof when it is a false invalid and challenged extrinsic is not a XDM extrinsic.

closes: #2660

Code contributor checklist:

Copy link
Member

@NingLin-P NingLin-P left a comment

Choose a reason for hiding this comment

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

Make sense to me!

@vedhavyas vedhavyas added this pull request to the merge queue Apr 8, 2024
Merged via the queue into main with commit 287305a Apr 8, 2024
9 checks passed
@vedhavyas vedhavyas deleted the invalid_xdm_variant branch April 8, 2024 12:03
@vanhauser-thc
Copy link
Collaborator

LGTM. good move to add a test for this.

@vanhauser-thc vanhauser-thc added audited This change was audited and removed need to audit This change needs to be audited labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audited This change was audited
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Critical] Incorrect handling of fraud proofs for BundleValidity::Invalid(InvalidBundleType::InvalidXDM)
5 participants