Skip to content

Commit b9bbdab

Browse files
committed
f - Add comment when setting ClaimableHTLC values
1 parent 38b8ecd commit b9bbdab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3257,6 +3257,9 @@ where
32573257
incoming_packet_shared_secret: incoming_shared_secret,
32583258
phantom_shared_secret,
32593259
},
3260+
// We differentiate the received value from the sender intended value
3261+
// if possible so that we don't prematurely mark MPP payments complete
3262+
// if routing nodes overpay
32603263
value: incoming_amt_msat.unwrap_or(outgoing_amt_msat),
32613264
intended_value: outgoing_amt_msat,
32623265
timer_ticks: 0,

0 commit comments

Comments
 (0)