pub const MEMPOOL_TRANSACTION_COST_THRESHOLD: u64 = 10_000;
Expand description
The minimum cost value for a transaction in the mempool.
Contributes to the randomized, weighted eviction of transactions from the mempool when it reaches a max size, also based on the total cost.
§Standard Rule
Each transaction has a cost, which is an integer defined as:
max(memory size in bytes, 10000)
The memory size is an estimate of the size that a transaction occupies in the memory of a node. It MAY be approximated as the serialized transaction size in bytes.
…
The threshold 10000 for the cost function is chosen so that the size in bytes of a minimal fully shielded Orchard transaction with 2 shielded actions (having a serialized size of 9165 bytes) will fall below the threshold. This has the effect of ensuring that such transactions are not evicted preferentially to typical transparent or Sapling transactions because of their size.