Skip to main content

decide_obligation_debt_dispatch

Function decide_obligation_debt_dispatch 

Source
pub fn decide_obligation_debt_dispatch<T>(
    state: &ObligationDebtDispatchState,
    participant_id: ParticipantId,
    binding_epoch: BindingEpoch,
    dispatch_after: DeliverySeq,
    select_next: impl FnOnce(ParticipantId, BindingEpoch, DeliverySeq) -> Option<(DeliverySeq, T)>,
) -> ObligationDebtDispatchDecision<T>
Expand description

Executes the protocol-owned dispatch decision under the conversation owner.

The caller supplies the already-reconciled cursor and a one-shot read of the least durable recipient obligation strictly after it. Clear authority permits any advancing selection. Owed authority additionally requires exact agreement between frontier and episode participant state, then treats endpoint testimony and the episode high watermark as the complete eligibility domain: the physical retention floor is deliberately not consulted.