mintlayer-core
mintlayer-core copied to clipboard
Fees of time-locked transactions should not be included in transaction score
(Created on Aug 30, 2023 by @iljakuklic)
Mempool builds a transaction graph and assigns each transaction a score. The score is used to pick the best transactions to be included in a block. The score is determined by the feerate of a transaction and its descendants (for chaild-pays-for-parent). However, transactions that are locked should not contribute to the score. Otherwise, we get less fee-efficient blocks.
Keep in mind that currently we account for fees that are locked to not more than the maturity period of un-staking delegations or decommissioning a pool. This same rule should go into the mempool.