Skip to main content

Module msg_pool

Module msg_pool 

Source

Structsยง

MessagePool
This contains all necessary information needed for the message pool. Keeps track of messages to apply, as well as context needed for verifying transactions.
MsgSet
Simple structure that contains a hash-map of messages where k: a message from address, v: a message which corresponds to that address.

Constantsยง

BLS_SIG_CACHE_SIZE ๐Ÿ”’
MAX_ACTOR_PENDING_MESSAGES
MAX_MESSAGE_SIZE ๐Ÿ”’
Maximum size of a serialized message in bytes. This is an anti-DOS measure to prevent large messages from being added to the message pool.
MAX_UNTRUSTED_ACTOR_PENDING_MESSAGES
SIG_VAL_CACHE_SIZE ๐Ÿ”’

Functionsยง

add_helper ๐Ÿ”’
Finish verifying signed message before adding it to the pending mset hash-map. If an entry in the hash-map does not yet exist, create a new mset that will correspond to the from message and push it to the pending hash-map.
remove
Remove a message from pending given the from address and sequence.
verify_msg_before_add ๐Ÿ”’