pub enum ActionAnchor {
BeforeSlot {
slots: Vec<u64>,
},
AfterSlot {
slots: Vec<u64>,
},
BeforeEverySlot {
every_n_slots: NonZeroU64,
},
AfterEverySlot {
every_n_slots: NonZeroU64,
},
BeforeMatch {
filter: DiscoveryFilter,
},
AfterMatch {
filter: DiscoveryFilter,
},
}Expand description
Where a ScheduledAction fires.
Variants§
BeforeSlot
At the start of each slot, before its transactions execute and before reroute quoting. Fires the entry for the current slot, if any.
AfterSlot
At the end of each slot, after its transactions execute but before it finalizes. Fires the entry for the current slot, if any.
BeforeEverySlot
Where beforeSlot fires, at every slot that is a multiple of
every_n_slots. The whole sequence fires at each, so a sequence repeated
across a range is sent once rather than once per slot. A slot that
carried no block fires nothing.
Fields
every_n_slots: NonZeroU64AfterEverySlot
Where afterSlot fires, at every slot that is a multiple of
every_n_slots. The whole sequence fires at each. A slot that carried no
block fires nothing.
Fields
every_n_slots: NonZeroU64BeforeMatch
Before each batch matching filter executes. The whole sequence fires at
each matching batch.
Fields
filter: DiscoveryFilterAfterMatch
After each batch matching filter commits. The whole sequence fires at
each matching batch.
Fields
filter: DiscoveryFilter