zebra_state::service::finalized_state::zebra_db::block

Function lookup_out_loc

source
fn lookup_out_loc(
    height: Height,
    outpoint: &OutPoint,
    tx_hash_indexes: &HashMap<Hash, usize>,
) -> OutputLocation
Expand description

Lookup the output location for an outpoint.

tx_hash_indexes must contain outpoint.hash and that transaction’s index in its block.