Skip to content

Commit 7ea52b6

Browse files
f use new const
1 parent 4656042 commit 7ea52b6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightning/src/ln/max_payment_path_len_tests.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use crate::ln::channelmanager::PaymentId;
2020
use crate::ln::functional_test_utils::*;
2121
use crate::ln::msgs;
2222
use crate::ln::onion_utils;
23+
use crate::ln::onion_utils::MIN_FINAL_VALUE_ESTIMATE_WITH_OVERPAY;
2324
use crate::ln::outbound_payment::{RecipientOnionFields, Retry, RetryableSendFailure};
2425
use crate::prelude::*;
2526
use crate::routing::router::{DEFAULT_MAX_TOTAL_CLTV_EXPIRY_DELTA, PaymentParameters, RouteParameters};
@@ -34,9 +35,6 @@ const INTERMED_PAYLOAD_LEN_ESTIMATE: usize = 61;
3435
// Length of the HMAC of an onion payload when encoded into the packet.
3536
const PAYLOAD_HMAC_LEN: usize = 32;
3637

37-
// Copied from onion_utils.
38-
const MIN_FINAL_VALUE_ESTIMATE_WITH_OVERPAY: u64 = 100_000_000;
39-
4038
#[test]
4139
fn large_payment_metadata() {
4240
// Test that we'll limit our maximum path length based on the size of the provided

0 commit comments

Comments
 (0)