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

Overhaul the extraction of bundles and receipts #1456

Merged
merged 4 commits into from
May 15, 2023

Conversation

liuchengxu
Copy link
Contributor

This PR primarily ensures the extracted bundles/receipts/fraud proofs from the original primary block are finally accepted by the primary chain, i.e., the submit_bundle/submit_fraud_proof calls are successful in the end. Temporary runtime storage will be cleared on block initialize is used to store the hashes of successful bundles and fraud proofs. Runtime API extract_stored_bundle_hashes is also changed to make use of this storage (This is mainly for consistency favor as I was reluctant to spend time thinking about the fraud proof events at present).

Close #1446

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 overall with just one nit.

BTW, the extract_system_receipts and extract_core_receipts changes mentioned at #1446 will be a separated PR, right?

test/subspace-test-runtime/src/lib.rs Show resolved Hide resolved
No logical changes.

- Make `verify_vrf_proof` a method of ProofOfElection.
- Remove resolved TODO in {core,system}_gossip_message_validator.
- Rename `extract_stored_bundles_at` to `successfully_submitted_bundles_at`
@liuchengxu liuchengxu force-pushed the overhaul-bundles/receipts-extraction branch from acf5539 to ceab1f8 Compare May 15, 2023 12:03
Copy link
Contributor Author

@liuchengxu liuchengxu left a comment

Choose a reason for hiding this comment

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

Yes, the API of core domain receipts extraction will be a separate PR.

test/subspace-test-runtime/src/lib.rs Show resolved Hide resolved
liuchengxu

This comment was marked as duplicate.

liuchengxu

This comment was marked as duplicate.

@liuchengxu liuchengxu requested a review from NingLin-P May 15, 2023 12:06
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.

Overhual the bundles/receipts extraction
2 participants