Skip to content

Commit 192f72a

Browse files
committed
leftover nits from #3040
1 parent c093e85 commit 192f72a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ object Helpers {
933933

934934
// We collect all the preimages we wanted to reveal to our peer.
935935
val hash2Preimage: Map[ByteVector32, ByteVector32] = commitment.changes.localChanges.all.collect { case u: UpdateFulfillHtlc => u.paymentPreimage }.map(r => Crypto.sha256(r) -> r).toMap
936-
// We collect incoming HTLCs that we starting failing but didn't cross-sign.
936+
// We collect incoming HTLCs that we started failing but didn't cross-sign.
937937
val failedIncomingHtlcs: Set[Long] = commitment.changes.localChanges.all.collect {
938938
case u: UpdateFailHtlc => u.id
939939
case u: UpdateFailMalformedHtlc => u.id
@@ -1107,7 +1107,7 @@ object Helpers {
11071107

11081108
// We collect all the preimages we wanted to reveal to our peer.
11091109
val hash2Preimage: Map[ByteVector32, ByteVector32] = commitment.changes.localChanges.all.collect { case u: UpdateFulfillHtlc => u.paymentPreimage }.map(r => Crypto.sha256(r) -> r).toMap
1110-
// We collect incoming HTLCs that we starting failing but didn't cross-sign.
1110+
// We collect incoming HTLCs that we started failing but didn't cross-sign.
11111111
val failedIncomingHtlcs: Set[Long] = commitment.changes.localChanges.all.collect {
11121112
case u: UpdateFailHtlc => u.id
11131113
case u: UpdateFailMalformedHtlc => u.id

eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2002,7 +2002,7 @@ class Channel(val nodeParams: NodeParams, val wallet: OnChainChannelFunder with
20022002
} else {
20032003
// Our counterparty is trying to broadcast a revoked commit tx (cheating attempt).
20042004
// We need to fail pending outgoing HTLCs, otherwise they will timeout upstream.
2005-
// We must do it here because since we're overwriting the commitments data, we will lose all information
2005+
// We must do it here because we're overwriting the commitments data, so we will lose all information
20062006
// about HTLCs that are in the current commitments but were not in the revoked one.
20072007
// We fail *all* outgoing HTLCs:
20082008
// - those that are not in the revoked commitment will never settle on-chain

0 commit comments

Comments
 (0)