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

Introduce submit_receipt to fill up the unbounded gap between HeadDomainNumber and HeadReceiptNumber #2933

Merged
merged 10 commits into from
Jul 24, 2024

Commits on Jul 19, 2024

  1. Pure refactoring to pallet-domains

    This is for better code reusability in the upcoming commit
    
    Signed-off-by: linning <linningde25@gmail.com>
    NingLin-P committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    cc42220 View commit details
    Browse the repository at this point in the history
  2. Add SingletonReceipt struct defination and helper functions

    It is used to submit receipt to fill up the gap between HeadDomainNumber and
    HeadReceiptNumber, it consist of the receipt, proof_of_election, and the signature.
    
    Signed-off-by: linning <linningde25@gmail.com>
    NingLin-P committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    2055ad8 View commit details
    Browse the repository at this point in the history
  3. Introduce the submit_receipt extrinsic

    Signed-off-by: linning <linningde25@gmail.com>
    NingLin-P committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    56b1d27 View commit details
    Browse the repository at this point in the history
  4. Add benchmark and weight for submit_receipt

    Signed-off-by: linning <linningde25@gmail.com>
    NingLin-P committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    ed3a331 View commit details
    Browse the repository at this point in the history
  5. Update domain client to produce/submit singleton receipt when there i…

    …s receipt gap
    
    Signed-off-by: linning <linningde25@gmail.com>
    NingLin-P committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    ea5f855 View commit details
    Browse the repository at this point in the history
  6. Add test case for singleton receipt

    Signed-off-by: linning <linningde25@gmail.com>
    NingLin-P committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    fedc400 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. Fix receipt gap brings by the genesis receipt

    Signed-off-by: linning <linningde25@gmail.com>
    NingLin-P committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    b08793e View commit details
    Browse the repository at this point in the history
  2. Add fast path to skip verifying the same receipt in the same block

    Signed-off-by: linning <linningde25@gmail.com>
    NingLin-P committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    2a6e900 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4d43993 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. Configuration menu
    Copy the full SHA
    cda9e51 View commit details
    Browse the repository at this point in the history