Trait breez_sdk_liquid::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)
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.