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

multi: Add CreateRevocationFromTicket. #2707

Merged
merged 2 commits into from
Aug 27, 2021

Commits on Aug 27, 2021

  1. stake: Add func to create revocation from ticket.

    This adds a new function, CreateRevocationFromTicket, and associated
    tests for creating a revocation transaction for a given ticket.
    rstaudt2 committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    a5abb4c View commit details
    Browse the repository at this point in the history
  2. rpcserver: Use CreateRevocationFromTicket.

    This reworks the createrawssrtx handler to use the
    CreateRevocationFromTicket function from the stake package rather than
    creating the transaction directly.
    
    It also adds additional error handling on the transaction input:
      - The input must be a ticket submission output (output index 0)
      - The input amount must equal the ticket submission amount
    rstaudt2 committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    98608fb View commit details
    Browse the repository at this point in the history