pub async fn listen_for_accept_replace(
    shutdown_tx: ShutdownSender,
    parachain_rpc: InterBtcParachain,
    vault_id_manager: VaultIdManager,
    num_confirmations: u32,
    payment_margin: Duration,
    auto_rbf: bool
) -> Result<(), Error>
Expand description

Listen for AcceptReplaceEvent directed at this vault and continue the replacement procedure by transferring bitcoin and calling execute_replace

Arguments

  • parachain_rpc - the parachain RPC handle
  • btc_rpc - the bitcoin RPC handle
  • num_confirmations - the number of bitcoin confirmation to await