From fd8845224e680759d7f37fb5ed30eb1299f1fdad Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Thu, 20 Jul 2023 15:26:23 -0400 Subject: [PATCH] f fix wrong const --- lightning/src/blinded_path/payment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/blinded_path/payment.rs b/lightning/src/blinded_path/payment.rs index e7800fc98a5..446841817e5 100644 --- a/lightning/src/blinded_path/payment.rs +++ b/lightning/src/blinded_path/payment.rs @@ -201,7 +201,7 @@ pub(super) fn compute_payinfo( .try_fold(0u16, |acc, delta| acc.checked_add(delta)).ok_or(())?, htlc_minimum_msat: path.iter().map(|(_, tlvs)| tlvs.htlc_minimum_msat()).max().unwrap_or(0), // TODO: this field isn't present in route blinding encrypted data - htlc_maximum_msat: 21_000_000 * 1_0000_0000, // Total bitcoin supply + htlc_maximum_msat: 21_000_000 * 100_000_000 * 1_000, // Total bitcoin supply // TODO: when there are blinded hop features, take the subset of them here features: BlindedHopFeatures::empty(), })