Module forest_filecoin::message_pool::msgpool
source · Modules§
- metrics π
- msg_pool π
- provider π
- Contains routines for message selection APIs. Whenever a miner is ready to create a block for a tipset, it invokes the
select_messages
API which selects an appropriate set of messages such that it optimizes miner reward and chain capacity. See https://docs.filecoin.io/mine/lotus/message-pool/#message-selection for more details - utils π
Constants§
- MIN_GAS π
- RBF_DENOM π
- RBF_NUM π
- REPLACE_BY_FEE_RATIO π
- REPUB_MSG_LIMIT π
Functions§
- add_to_selected_msgs πThis is a helper function for
head_change
. This method will add a signed message to the given messages selected by priorityHashMap
. - get_state_sequence πGet the state of the
base_sequence
for a given address in the current Tipset - This function will revert and/or apply tipsets to the message pool. This function should be called every time that there is a head change in the message pool.
- This is a helper function for
head_change
. This method will remove a sequence for a from address from the messages selected by priority hash-map. It also removes the βfromβ address and sequence from theMessagePool
. - Select messages from the mempool to be included in the next block that builds on a given base tipset. The messages should be eligible for inclusion based on their sequences and the overall number of them should observe block gas limits.