Homework on Mempool - Questions
- What is the mempool?
The Mempool is a list of all pending transactions that have been broadcasted, validated and distributed on the network, but not yet confirmed in a block. Each node puts pending transactions in their own version of the mempool, as it is distributed. This means each node can temporarily have different versions of the mempool.
A miner can check it’s own mempool (since it is also a node), and/or ask other nodes to see their mempool, to be able to create a block.
- What happens if the miners can’t keep up with the rate of the new transaction?
The mempool grows bigger over time, if the amount of pending transactions grows quicker than what the miners are able to include in their blocks every ten minutes.
- How does a growing mempool effect transaction fees?
A miner will always choose to include the transactions with the highest fees first, when they create a block. Fees are denominated in sats/B. B is the size of the data that is in the transaction. This means that a transaction that is constructed in a more effective way, will be cheaper to confirm, than one that is less data size effective.
This is because a block has a limited size, and the miners have an incentive to make money. If the mempool grows, the fee to include a transaction in a block goes up too.