Module forest_filecoin::message_pool::msgpool::selection
source Β· Expand description
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
Constants§
- MAX_BLOCKS π
- MAX_BLOCK_MSGS π
Functions§
- merge_and_trim πReturns merged and trimmed messages with the gas limit
- run_head_change πLike
head_change
, except it doesnβt change the state of theMessagePool
. It simulates a head change call.
Type Aliases§
- Pending π