Function vault::service::listen_for_replace_requests
source · pub async fn listen_for_replace_requests(
parachain_rpc: InterBtcParachain,
btc_rpc: VaultIdManager,
event_channel: Sender<Event>,
accept_replace_requests: bool
) -> Result<(), Error>
Expand description
Listen for RequestReplaceEvent, and attempt to accept it
Arguments
parachain_rpc
- the parachain RPC handleevent_channel
- the channel over which to signal eventsaccept_replace_requests
- if true, we attempt to accept replace requests