Trait 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)
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)
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)
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)
fn probe_successful(&mut self, path: &Path)
Handles updating channel penalties after a probe over the given path succeeded.
Implementors§
impl ScoreUpdate for FixedPenaltyScorer
impl<G, L, T> ScoreUpdate for ProbabilisticScorerUsingTime<G, L, T>
impl<S, T> ScoreUpdate for Twhere
S: ScoreUpdate,
T: DerefMut<Target = S>,
Available on non-
c_bindings only.