Skip to content

Commit a04dbc2

Browse files
committed
routing+htlcswitch: fix typos/grammar
1 parent 115b041 commit a04dbc2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

htlcswitch/switch.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ func (s *Switch) getLocalLink(pkt *htlcPacket, htlc *lnwire.UpdateAddHTLC) (
851851
// If the link was not found for the outgoingChanID, an outside
852852
// subsystem may be using the confirmed SCID of a zero-conf
853853
// channel. In this case, we'll consult the Switch maps to see
854-
// if an alias exists and use the alias to lookup the link.
854+
// if an alias exists and use the alias to look up the link.
855855
// This extra step is a consequence of not updating the Switch
856856
// forwardingIndex when a zero-conf channel is confirmed. We
857857
// don't need to change the outgoingChanID since the link will
@@ -1125,7 +1125,7 @@ func (s *Switch) handlePacketForward(packet *htlcPacket) error {
11251125
"destination %v", packet.outgoingChanID)
11261126

11271127
// If packet was forwarded from another channel link
1128-
// than we should notify this link that some error
1128+
// then we should notify this link that some error
11291129
// occurred.
11301130
linkError := NewLinkError(
11311131
&lnwire.FailUnknownNextPeer{},

routing/result_interpretation.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,10 @@ func (i *interpretedResult) processPaymentOutcomeIntermediate(
307307

308308
// If a node reports onion payload corruption or an invalid version,
309309
// that node may be responsible, but it could also be that it is just
310-
// relaying a malformed htlc failure from it successor. By reporting the
310+
// relaying a malformed htlc failure from its successor. By reporting the
311311
// outgoing channel set, we will surely hit the responsible node. At
312312
// this point, it is not possible that the node's predecessor corrupted
313-
// the onion blob. If the predecessor would have corrupted the payload,
313+
// the onion blob. If the predecessor had corrupted the payload,
314314
// the error source wouldn't have been able to encrypt this failure
315315
// message for us.
316316
case *lnwire.FailInvalidOnionVersion,
@@ -360,7 +360,7 @@ func (i *interpretedResult) processPaymentOutcomeIntermediate(
360360
// When an HTLC parameter is incorrect, the node sending the error may
361361
// be doing something wrong. But it could also be that its predecessor
362362
// is intentionally modifying the htlc parameters that we instructed it
363-
// via the hop payload. Therefore we penalize the incoming node pair. A
363+
// via the hop payload. Therefore, we penalize the incoming node pair. A
364364
// third cause of this error may be that we have an out of date channel
365365
// update. This is handled by the second chance logic up in mission
366366
// control.

0 commit comments

Comments
 (0)