File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -360,15 +360,12 @@ impl OutboundHTLCState {
360
360
OutboundHTLCState::AwaitingRemoteRevokeToRemove(_) => generated_by_local,
361
361
OutboundHTLCState::AwaitingRemovedRemoteRevoke(_) => false,
362
362
}
363
- }
364
-
365
- fn preimage(&self) -> Option<PaymentPreimage> {
366
363
match self {
367
- OutboundHTLCState::RemoteRemoved(OutboundHTLCOutcome::Success(preimage)) |
368
- OutboundHTLCState::AwaitingRemoteRevokeToRemove(OutboundHTLCOutcome::Success(preimage)) |
369
- OutboundHTLCState::AwaitingRemovedRemoteRevoke(OutboundHTLCOutcome::Success(preimage)) => {
370
- Some(*preimage)
371
- },
364
+ OutboundHTLCState::RemoteRemoved(OutboundHTLCOutcome::Success(preimage))
365
+ | OutboundHTLCState::AwaitingRemoteRevokeToRemove(OutboundHTLCOutcome::Success(preimage))
366
+ | OutboundHTLCState::AwaitingRemovedRemoteRevoke(OutboundHTLCOutcome::Success(preimage)) => {
367
+ Some(*preimage)
368
+ },
372
369
_ => None,
373
370
}
374
371
}
You can’t perform that action at this time.
0 commit comments