Trait breez_sdk_core::lightning::routing::scoring::ScoreUpdate

pub trait ScoreUpdate {
    // Required methods
    fn payment_path_failed(&mut self, path: &Path, short_channel_id: u64);
    fn payment_path_successful(&mut self, path: &Path);
    fn probe_failed(&mut self, path: &Path, short_channel_id: u64);
    fn probe_successful(&mut self, path: &Path);
}
Expand description

ScoreUpdate is used to update the scorer’s internal state after a payment attempt.

Required Methods§

fn payment_path_failed(&mut self, path: &Path, short_channel_id: u64)

Handles updating channel penalties after failing to route through a channel.

fn payment_path_successful(&mut self, path: &Path)

Handles updating channel penalties after successfully routing along a path.

fn probe_failed(&mut self, path: &Path, short_channel_id: u64)

Handles updating channel penalties after a probe over the given path failed.

fn probe_successful(&mut self, path: &Path)

Handles updating channel penalties after a probe over the given path succeeded.

Implementors§

§

impl ScoreUpdate for TestScorer

§

impl ScoreUpdate for FixedPenaltyScorer

§

impl<G, L, T> ScoreUpdate for ProbabilisticScorerUsingTime<G, L, T>
where G: Deref<Target = NetworkGraph<L>>, L: Deref, T: Time, <L as Deref>::Target: Logger,

§

impl<S, T> ScoreUpdate for T
where S: ScoreUpdate, T: DerefMut<Target = S>,