Skip to content

Commit 76ea388

Browse files
committed
Add cltv_expiry to HTLCPreviousHopData
This is needed in order to fail back an inbound HTLC before our upstream counterparty goes to claim on-chain, which will be added in an upcoming commit.
1 parent 2fcbcf7 commit 76ea388

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4873,6 +4873,7 @@ where
48734873
},
48744874
HTLCSource::PreviousHopData(HTLCPreviousHopData { ref short_channel_id, ref htlc_id, ref incoming_packet_shared_secret, ref phantom_shared_secret, ref outpoint, .. }) => {
48754875
log_trace!(self.logger, "Failing HTLC with payment_hash {} backwards from us with {:?}", &payment_hash, onion_error);
4876+
log_trace!(self.logger, "Failing HTLC with payment_hash {} backwards from us with {:?}", log_bytes!(payment_hash.0), onion_error);
48764877
let err_packet = onion_error.get_encrypted_failure_packet(incoming_packet_shared_secret, phantom_shared_secret);
48774878

48784879
let mut push_forward_ev = false;

0 commit comments

Comments
 (0)