File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -313,6 +313,8 @@ where
313
313
Ok ( ( cur_value_msat, cur_cltv) )
314
314
}
315
315
316
+ pub ( crate ) const MIN_FINAL_VALUE_ESTIMATE_WITH_OVERPAY : u64 = 100_000_000 ;
317
+
316
318
pub ( crate ) fn set_max_path_length (
317
319
route_params : & mut RouteParameters , recipient_onion : & RecipientOnionFields ,
318
320
keysend_preimage : Option < PaymentPreimage > , best_block_height : u32 ,
@@ -326,7 +328,6 @@ pub(crate) fn set_max_path_length(
326
328
. serialized_length ( )
327
329
. saturating_add ( PAYLOAD_HMAC_LEN ) ;
328
330
329
- const MIN_FINAL_VALUE_ESTIMATE_WITH_OVERPAY : u64 = 100_000_000 ;
330
331
let final_value_msat_with_overpay_buffer = core:: cmp:: max (
331
332
route_params. final_value_msat . saturating_mul ( 4 ) ,
332
333
MIN_FINAL_VALUE_ESTIMATE_WITH_OVERPAY ,
You can’t perform that action at this time.
0 commit comments