Module forest_filecoin::message_pool::msg_chain
source ยท Structsยง
- Chains ๐Chains is an abstraction of a list of message chain nodes. It wraps a
SlotMap
instance.key_vec
is an additional requirement in order to satisfy optimalmsg
selection use cases, such as iteration in insertion order. TheSlotMap
serves as a lookup table for nodes to get around the borrow checker rules. EachMsgChainNode
contains only pointers asNodeKey
to the entries in the map With this design, we get around the borrow checker rule issues when implementing the optimal selection algorithm. - Represents a node in the
MsgChain
.
Functionsยง
- approx_cmp ๐