Skip to main content

Module msgpool

Module msgpool 

Source

ModulesΒ§

metrics πŸ”’
msg_pool πŸ”’
provider πŸ”’
selection
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Β§

BASE_FEE_LOWER_BOUND_FACTOR πŸ”’
BASE_FEE_LOWER_BOUND_FACTOR_CONSERVATIVE πŸ”’
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 priority HashMap.
get_state_sequence πŸ”’
Get the state of the base_sequence for a given address in the current Tipset
head_change
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.
remove_from_selected_msgs πŸ”’
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 the MessagePool.
republish_pending_messages πŸ”’
select_messages_for_block πŸ”’
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.