Skip to content

Commit e58e972

Browse files
f also store RouteParams
1 parent 01d9799 commit e58e972

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7280,6 +7280,7 @@ where
72807280
entry.insert(PendingOutboundPayment::Retryable {
72817281
retry_strategy: Retry::Attempts(0),
72827282
attempts: PaymentAttempts::new(),
7283+
route_params: None,
72837284
session_privs: [session_priv_bytes].iter().map(|a| *a).collect(),
72847285
payment_hash: htlc.payment_hash,
72857286
payment_secret,

lightning/src/ln/outbound_payment.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ pub(crate) enum PendingOutboundPayment {
4242
Retryable {
4343
retry_strategy: Retry,
4444
attempts: PaymentAttempts,
45+
route_params: Option<RouteParameters>,
4546
session_privs: HashSet<[u8; 32]>,
4647
payment_hash: PaymentHash,
4748
payment_secret: Option<PaymentSecret>,
@@ -523,6 +524,7 @@ impl OutboundPayments {
523524
let payment = entry.insert(PendingOutboundPayment::Retryable {
524525
retry_strategy,
525526
attempts: PaymentAttempts::new(),
527+
route_params,
526528
session_privs: HashSet::new(),
527529
pending_amt_msat: 0,
528530
pending_fee_msat: Some(0),
@@ -930,6 +932,7 @@ impl_writeable_tlv_based_enum_upgradable!(PendingOutboundPayment,
930932
(4, payment_secret, option),
931933
(not_written, attempts, (static_value, PaymentAttempts::new())),
932934
(6, total_msat, required),
935+
(7, route_params, option),
933936
(8, pending_amt_msat, required),
934937
(10, starting_block_height, required),
935938
},

0 commit comments

Comments
 (0)