Expand description
An implementation of the [ZIP-317] fee calculations for UnminedTxs:
Enums§
- Errors related to ZIP-317.
Constants§
- If a tx has more than
BLOCK_UNPAID_ACTION_LIMIT
“unpaid actions”, it will never be mined by the Recommended algorithm for block template construction, implemented in Zebra here. - The fee cap for
MIN_MEMPOOL_TX_FEE_RATE
minimum required mempool fees. - The minimum fee per kilobyte for Zebra mempool transactions. Also used as the minimum fee for a mempool transaction.
Functions§
- Returns the conventional actions for
transaction
,max(logical_actions, GRACE_ACTIONS)
, as defined by ZIP-317. - Returns the conventional fee for
transaction
, as defined by ZIP-317. - Returns the block production fee weight ratio for
transaction
, as defined by ZIP-317. - Make ZIP-317 checks before inserting a transaction into the mempool.
- Returns the number of unpaid actions for
transaction
, as defined by ZIP-317.