clementine_core::builder::transaction::challenge

Function create_challenge_timeout_txhandler

Source
pub fn create_challenge_timeout_txhandler(
    kickoff_txhandler: &TxHandler,
    paramset: &'static ProtocolParamset,
) -> Result<TxHandler, BridgeError>
Expand description

Creates a TxHandler for the challenge_timeout transaction.

This transaction is used to finalize a kickoff if no challenge is submitted in time, allowing the operator to proceed faster to the next round, thus getting their reimbursement, as the next round will generate the reimbursement connectors of the current round.

§Inputs

  1. KickoffTx: Challenge utxo
  2. KickoffTx: KickoffFinalizer utxo

§Outputs

  1. Anchor output for CPFP

§Arguments

  • kickoff_txhandler - The kickoff transaction handler the challenge timeout belongs to.
  • paramset - Protocol parameter set.

§Returns

A TxHandler for the challenge timeout transaction, or a BridgeError if construction fails.