projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Provide `Score` the HTLC amount and channel capacity
[rust-lightning]
/
lightning-invoice
/
src
/
payment.rs
diff --git
a/lightning-invoice/src/payment.rs
b/lightning-invoice/src/payment.rs
index 85786a90a3450bec756328889e6de002a8108658..4099afbaa4c74b60e0427755f5dd0f42dbf9ab77 100644
(file)
--- a/
lightning-invoice/src/payment.rs
+++ b/
lightning-invoice/src/payment.rs
@@
-73,7
+73,7
@@
//! # struct FakeScorer {};
//! # impl routing::Score for FakeScorer {
//! # fn channel_penalty_msat(
//! # struct FakeScorer {};
//! # impl routing::Score for FakeScorer {
//! # fn channel_penalty_msat(
-//! # &self, _short_channel_id: u64, _source: &NodeId, _target: &NodeId
+//! # &self, _short_channel_id: u64, _s
end_amt: u64, _chan_amt: Option<u64>, _s
ource: &NodeId, _target: &NodeId
//! # ) -> u64 { 0 }
//! # fn payment_path_failed(&mut self, _path: &[&RouteHop], _short_channel_id: u64) {}
//! # }
//! # ) -> u64 { 0 }
//! # fn payment_path_failed(&mut self, _path: &[&RouteHop], _short_channel_id: u64) {}
//! # }
@@
-1227,7
+1227,7
@@
mod tests {
impl routing::Score for TestScorer {
fn channel_penalty_msat(
impl routing::Score for TestScorer {
fn channel_penalty_msat(
- &self, _short_channel_id: u64, _source: &NodeId, _target: &NodeId
+ &self, _short_channel_id: u64, _s
end_amt: u64, _chan_amt: Option<u64>, _s
ource: &NodeId, _target: &NodeId
) -> u64 { 0 }
fn payment_path_failed(&mut self, _path: &[&RouteHop], short_channel_id: u64) {
) -> u64 { 0 }
fn payment_path_failed(&mut self, _path: &[&RouteHop], short_channel_id: u64) {