File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2020use bitcoin::blockdata::block::Header;
2121use bitcoin::blockdata::transaction::Transaction;
2222use bitcoin::blockdata::constants::ChainHash;
23+ use bitcoin::key::constants::SECRET_KEY_SIZE;
2324use bitcoin::network::constants::Network;
2425
2526use bitcoin::hashes::Hash;
@@ -313,7 +314,7 @@ impl Readable for InterceptId {
313314/// Uniquely describes an HTLC by its source. Just the guaranteed-unique subset of [`HTLCSource`].
314315pub(crate) enum SentHTLCId {
315316 PreviousHopData { short_channel_id: u64, htlc_id: u64 },
316- OutboundRoute { session_priv: SecretKey },
317+ OutboundRoute { session_priv: [u8; SECRET_KEY_SIZE] },
317318}
318319impl SentHTLCId {
319320 pub(crate) fn from_source(source: &HTLCSource) -> Self {
@@ -323,7 +324,7 @@ impl SentHTLCId {
323324 htlc_id: hop_data.htlc_id,
324325 },
325326 HTLCSource::OutboundRoute { session_priv, .. } =>
326- Self::OutboundRoute { session_priv: * session_priv },
327+ Self::OutboundRoute { session_priv: session_priv.secret_bytes() },
327328 }
328329 }
329330}
You can’t perform that action at this time.
0 commit comments