zebra_rpc::methods::get_block_template_rpcs::zip317

Function setup_fee_weighted_index

source
fn setup_fee_weighted_index(
    transactions: &[VerifiedUnminedTx],
) -> Option<WeightedIndex<f32>>
Expand description

Returns a fee-weighted index and the total weight of transactions.

Returns None if there are no transactions, or if the weights are invalid.