delvingbitcoin
Mempool Based Fee Estimation on Bitcoin Core
Posted on: March 22, 2024 11:40 UTC
The discussion revolves around the challenges and potential solutions in estimating transaction fees within a blockchain network, particularly focusing on how to avoid inaccurately low or high fee rate estimations.
The primary concern highlighted is the adaptation towards lower estimates, especially when previously mined blocks have lower fee rates. This could lead to an underestimation of fees when compared with the current state of the mempool, which is the collection of all transactions waiting to be confirmed. To address this issue, an approach was suggested to use the minimum between the confirmed estimate and the mempool estimate. However, this method also tends toward underestimation, indicating that while it may solve the problem of overestimation by the CBlockPolicyEstimator
, it does not fully rectify the estimation inaccuracies.
An important aspect of the discussion includes the introduction of checks that could prevent nodes from using this estimation mode during soft forks, which are updates to the blockchain protocol that are backward compatible. This indicates a proactive measure to ensure that the network's functionality remains stable during such updates. Additionally, the concern about miners potentially manipulating the mempool to artificially inflate fee estimates was addressed. It was suggested that such manipulation would involve mining empty blocks or intentionally delaying mining to congest the mempool. However, the decentralization of mining activities is believed to mitigate this risk, suggesting that in a sufficiently decentralized environment, such scenarios would be unlikely to occur.
The dialogue also incorporates a visual representation comparing mempool fee estimates with actual block median fees, alongside a link to a spreadsheet providing additional data. These resources are essential for understanding the practical implications of fee estimation methods and the performance of the proposed solution in real-world conditions. Overall, the conversation underscores the complexity of accurately estimating transaction fees in a dynamic and decentralized blockchain environment and explores potential strategies to improve the reliability of these estimates.