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_messagesAPI 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 priorityHashMap. - get_
state_ πsequence - Get the state of the
base_sequencefor 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 theMessagePool. - 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.