Skip to content

Commit 7a97bfb

Browse files
f make const pub(crate)
1 parent 6fcd3a1 commit 7a97bfb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/ln/onion_utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ where
313313
Ok((cur_value_msat, cur_cltv))
314314
}
315315

316+
pub(crate) const MIN_FINAL_VALUE_ESTIMATE_WITH_OVERPAY: u64 = 100_000_000;
317+
316318
pub(crate) fn set_max_path_length(
317319
route_params: &mut RouteParameters, recipient_onion: &RecipientOnionFields,
318320
keysend_preimage: Option<PaymentPreimage>, best_block_height: u32,
@@ -326,7 +328,6 @@ pub(crate) fn set_max_path_length(
326328
.serialized_length()
327329
.saturating_add(PAYLOAD_HMAC_LEN);
328330

329-
const MIN_FINAL_VALUE_ESTIMATE_WITH_OVERPAY: u64 = 100_000_000;
330331
let final_value_msat_with_overpay_buffer = core::cmp::max(
331332
route_params.final_value_msat.saturating_mul(4),
332333
MIN_FINAL_VALUE_ESTIMATE_WITH_OVERPAY,

0 commit comments

Comments
 (0)