Skip to content

Commit bba7da7

Browse files
committed
f: store previous hop data in vec
1 parent d7ffef3 commit bba7da7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6246,7 +6246,7 @@ where
62466246
let htlc_source = HTLCSource::TrampolineForward {
62476247
// dummy value
62486248
session_priv: SecretKey::from_slice(&self.entropy_source.get_secure_random_bytes()).unwrap(),
6249-
previous_hop_data: HTLCPreviousHopData {
6249+
previous_hop_data: vec![HTLCPreviousHopData {
62506250
short_channel_id: prev_short_channel_id,
62516251
user_channel_id: Some(prev_user_channel_id),
62526252
counterparty_node_id: prev_counterparty_node_id,
@@ -6258,7 +6258,7 @@ where
62586258
phantom_shared_secret: None,
62596259
blinded_failure: blinded.map(|b| b.failure),
62606260
cltv_expiry: Some(incoming_cltv_expiry),
6261-
},
6261+
}],
62626262
incoming_trampoline_shared_secret,
62636263
hops: Vec::new(),
62646264
};

0 commit comments

Comments
 (0)