async fn get_tx_status_cached(
rpc: &ExtendedBitcoinRpc,
tx_cache: &mut HashMap<Txid, TxChainStatus>,
block_cache: &mut HashMap<BlockHash, (u32, u32)>,
txid: Txid,
) -> Result<TxChainStatus, BridgeError>Expand description
Get the status of a transaction from the cache or from the RPC. The cache is used to avoid duplicate RPC calls.