Skip to main content

fresh_dispatch_refusal

Function fresh_dispatch_refusal 

Source
pub(crate) fn fresh_dispatch_refusal(
    invoice_expired: bool,
    fresh_max_delay: u64,
) -> Option<Cancelled>
Expand description

Decides whether a send may dispatch a payment it has not started yet, returning the reason to cancel with if not. A payment already in flight resumes regardless.