Function vault::service::listen_for_redeem_requests
source · pub async fn listen_for_redeem_requests(
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 RequestRedeemEvent directed at this vault; upon reception, transfer bitcoin and call execute_redeem
Arguments
parachain_rpc
- the parachain RPC handlebtc_rpc
- the bitcoin RPC handlenetwork
- network the bitcoin network used (i.e. regtest/testnet/mainnet)num_confirmations
- the number of bitcoin confirmation to await