Monday, December 23, 2024

What if the mempool exceeds 300 MB?

Every node maintains a separate, particular person mempool. Whereas the default limits its measurement to 300 MiB, every node operator can set their very own worth. Notice that the mempool measurement restrict doesn’t pertain to the serialized knowledge or the transaction weight of the queued transactions (which is what’s written to the block and what you see listed on a mempool displays respectively), however to the precise reminiscence utilization of the deserialized transaction knowledge on the node. This reminiscence utilization is platform dependent. In consequence, transactions begin getting dropped when mempool displays attain a block depth of about 80-95 blocks.

When a node’s mempool restrict is reached, it should drop the transactions with the bottom feerate and improve its minMempoolFeeRate. It’ll talk its new minMempoolFeeRate to its friends, principally telling friends to not ahead transactions beneath that feerate in the meanwhile. Notice that each node does this individually, so a node with a bigger mempool or totally different structure might drop transactions earlier or later. Nodes will make a copy of transactions which are related to their very own pockets. Even when all different nodes have dropped a transaction, the sender and recipients of a transaction would retain a replica. The sender can both pressure his node to drop the unique transaction and ship one other conflicting transaction to replace it, or their node will proceed to attempt to broadcast the transaction so that it’ll ultimately get relayed on the community once more as soon as the queue has receded.

After the queue decreases below the 300 MiB restrict and with some added delay, a node will decrease their minMempoolFeeRate and begin accepting transactions once more that it beforehand expelled.

You possibly can at present observe this occurring e.g. on Johoe’s mempool monitor¹: Last 24h of BTC (default mempool)

As you possibly can see, the 1-2 sat/B band dropped round 7am that morning when the node’s mempool exceeded its restrict.


¹Note that there are two BTC views and the linked and related on this case is BTC (default mempool))

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles