Skip to content

Commit 4b39220

Browse files
f document max_htlc used
1 parent f325915 commit 4b39220

File tree

1 file changed

+4
-1
lines changed
  • lightning/src/blinded_path

1 file changed

+4
-1
lines changed

lightning/src/blinded_path/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,11 @@ impl BlindedPath {
8181
payee_node_id: PublicKey, payee_tlvs: payment::ReceiveTlvs, entropy_source: &ES,
8282
secp_ctx: &Secp256k1<T>
8383
) -> Result<(BlindedPayInfo, Self), ()> {
84+
// This value is not considered in pathfinding for 1-hop blinded paths, because it's intended to
85+
// be in relation to a specific channel.
86+
let htlc_maximum_msat = u64::max_value();
8487
Self::new_for_payment(
85-
&[], payee_node_id, payee_tlvs, u64::max_value(), entropy_source, secp_ctx
88+
&[], payee_node_id, payee_tlvs, htlc_maximum_msat, entropy_source, secp_ctx
8689
)
8790
}
8891

0 commit comments

Comments
 (0)