Struct forest_actor::miner::BitFieldQueue
source · [−]Expand description
Wrapper for working with an AMTChainEpoch*Bitfield functioning as a queue, bucketed by epoch. Keys in the queue are quantized (upwards), modulo some offset, to reduce the cardinality of keys.
Fields
amt: Amt<'db, BitField, BS>
Implementations
pub fn add_to_queue(
&mut self,
raw_epoch: ChainEpoch,
values: &BitField
) -> Result<(), Box<dyn StdError>>
pub fn add_to_queue(
&mut self,
raw_epoch: ChainEpoch,
values: &BitField
) -> Result<(), Box<dyn StdError>>
Adds values to the queue entry for an epoch.
pub fn add_to_queue_values(
&mut self,
epoch: ChainEpoch,
values: &[usize]
) -> Result<(), Box<dyn StdError>>
Cut cuts the elements from the bits in the given bitfield out of the queue, shifting other bits down and removing any newly empty entries.
See the docs on BitField::cut
to better understand what it does.