delvingbitcoin
Package aware Fee estimator post cluster mempool
Posted on: December 23, 2023 11:10 UTC
In the process of managing transaction chunks within a blockchain network, it is advisable to consider both individual transactions and collections of transactions as chunks.
Upon the arrival of a new block, the recommended procedure is to linearize said block in order to obtain a sequential arrangement of chunks. A successful match occurs when there's concordance between a chunk’s transactions and its fee rate. In such cases, the matched chunk is then removed from consideration.
When an exact match is not found, the corresponding transactions should be eliminated from the fee estimator mapMempoolTxs as well as the blockIndex. It becomes pertinent for the mempool to communicate with the fee estimator regarding new chunks, updated chunks, and the eviction of chunks. Discrepancies in fee rates may arise due to several reasons, including variances in mempool compositions, differences in the linearization algorithms used, or partial mining of a transaction package.
To maintain system integrity, it is suggested that mismatches in fee rates attributable to these reasons be overlooked. This approach ensures reliance on the local mempool data, echoing sentiments previously expressed by developer 'sipa'. The strategy aims at minimizing potential errors and aligning with established best practices for handling transaction chunks within the blockchain space.