Skip to content

Commit 8e078d0

Browse files
authored
Apply suggestion from @doitian
1 parent 7ae0df4 commit 8e078d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/fiber-lib/src/cch/actor.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,9 @@ impl CchState {
428428
payment_preimage: Option<Hash256>,
429429
status: CchOutgoingPaymentStatus,
430430
) -> Result<()> {
431-
// Currently only handle lnd payment events which is for order from fiber to lightning.
431+
// When the order is not from fiber to lightning, the payment is sent to fiber. Since Fiber
432+
// events are handled in `handle_pending_received_tlc_notification` and
433+
// `handle_settled_tlc_notification`, skip the event here.
432434
if !order.is_from_fiber_to_lightning() {
433435
return Ok(());
434436
}

0 commit comments

Comments
 (0)