]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Merge pull request #1197 from jkczyz/2021-11-score-successful-payment-path
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Fri, 3 Dec 2021 21:04:41 +0000 (21:04 +0000)
committerGitHub <noreply@github.com>
Fri, 3 Dec 2021 21:04:41 +0000 (21:04 +0000)
Score successful payment paths

1  2 
lightning-invoice/src/payment.rs

index 46bd86fb03ccef3a2169e37afe5558c27cc11afa,ce942ef574e4c9d570900d96bb7e5e2db7f9b72c..e785bb39264130a4895a25fd663e1b42560fd665
  //! #         &self, _short_channel_id: u64, _send_amt: u64, _chan_amt: Option<u64>, _source: &NodeId, _target: &NodeId
  //! #     ) -> u64 { 0 }
  //! #     fn payment_path_failed(&mut self, _path: &[&RouteHop], _short_channel_id: u64) {}
+ //! #     fn payment_path_successful(&mut self, _path: &[&RouteHop]) {}
  //! # }
  //! #
 -//! # struct FakeLogger {};
 +//! # struct FakeLogger {}
  //! # impl Logger for FakeLogger {
  //! #     fn log(&self, record: &Record) { unimplemented!() }
  //! # }