Skip to main content

Module selection

Module 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

StructsΒ§

SelectedMessages πŸ”’
A structure that holds the selected messages for a block. It tracks the gas limit and the limits for different signature types to ensure that the block does not exceed the limits set by the protocol.

ConstantsΒ§

CBOR_GEN_LIMIT πŸ”’
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 the MessagePool. It simulates a head change call.

Type AliasesΒ§

Pending πŸ”’