Skip to main content

miner_fee

Function miner_fee 

Source
fn miner_fee(
    tx: &Transaction,
    spent_utxos: &HashMap<OutPoint, Utxo>,
) -> Result<Amount<NonNegative>, TransactionError>
Expand description

Calculates the miner fee from the transaction’s value balance.