deterministic transaction expiration



Summary:

The implementation and costs of change will drive the decision-making process for additional look-backs in the mempool. There are fields available in memory for each mempool transaction including hash, CTransaction, nFee, nTxSize, nTime, dPriority, and nHeight. The mempool can be pruned based on time criteria without additional database lookups or in-memory indexes can be constructed to order hashes by priority/fees. These techniques will likely be attempted before resorting to looking back two or three transactions deep at coin age. Jeff Garzik, a Bitcoin core developer and open source evangelist, shares these thoughts.


Updated on: 2023-06-09T01:44:44.713689+00:00