cuprate_consensus_rules::transactions

Function get_absolute_offsets

Source
pub fn get_absolute_offsets(
    relative_offsets: &[u64],
) -> Result<Vec<u64>, TransactionError>
Expand description

Gets the absolute offsets from the relative offsets.

This function will return an error if the relative offsets are empty. https://cuprate.github.io/monero-book/consensus_rules/transactions.html#inputs-must-have-decoys