Skip to content

Commit 12bc3b2

Browse files
committed
chore: fix some comments
Signed-off-by: jinjingroad <[email protected]>
1 parent d47158d commit 12bc3b2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

loopdb/protocol_version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const (
3232
ProtocolVersionUserExpiryLoopOut ProtocolVersion = 4
3333

3434
// ProtocolVersionHtlcV2 indicates that the client will use the new
35-
// HTLC v2 scrips for swaps.
35+
// HTLC v2 scripts for swaps.
3636
ProtocolVersionHtlcV2 ProtocolVersion = 5
3737

3838
// ProtocolVersionMultiLoopIn indicates that the client creates a probe

routing_plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ func (r *lowToHighRoutingPlugin) BeforePayment(ctx context.Context,
513513
// Calculate the limit until we'll disable edges. The way we calculate
514514
// this limit is that we take the minimum and maximum fee peers which
515515
// define our fee range. Within this fee range we'll scale linearly
516-
// where each step euqals to the range divided by maxAttempts.
516+
// where each step equals to the range divided by maxAttempts.
517517
minFee := r.nodesByMaxFee[0].fee
518518
maxFee := r.nodesByMaxFee[len(r.nodesByMaxFee)-1].fee
519519
limit := minFee +

swap/htlc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const (
4141
HtlcV3
4242
)
4343

44-
// htlcScript defines an interface for the different HTLC implementations.
44+
// HtlcScript defines an interface for the different HTLC implementations.
4545
type HtlcScript interface {
4646
// genSuccessWitness returns the success script to spend this htlc with
4747
// the preimage.

swap_server_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ const (
636636
paymentTypeInvoice
637637
)
638638

639-
// routeCancelMetadata contains cancelation information for swaps that are
639+
// routeCancelMetadata contains cancellation information for swaps that are
640640
// canceled because the client could not route off-chain to the server.
641641
type routeCancelMetadata struct {
642642
// paymentType is the type of payment that failed.

0 commit comments

Comments
 (0)