Function vault::service::listen_for_accept_replace
source · 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 handlebtc_rpc
- the bitcoin RPC handlenum_confirmations
- the number of bitcoin confirmation to await