Skip to content

Commit

Permalink
Merge pull request #774 from jinjingroad/master
Browse files Browse the repository at this point in the history
chore: fix some comments
  • Loading branch information
sputn1ck authored Jun 5, 2024
2 parents d47158d + 12bc3b2 commit 557ac34
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion loopdb/protocol_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const (
ProtocolVersionUserExpiryLoopOut ProtocolVersion = 4

// ProtocolVersionHtlcV2 indicates that the client will use the new
// HTLC v2 scrips for swaps.
// HTLC v2 scripts for swaps.
ProtocolVersionHtlcV2 ProtocolVersion = 5

// ProtocolVersionMultiLoopIn indicates that the client creates a probe
Expand Down
2 changes: 1 addition & 1 deletion routing_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ func (r *lowToHighRoutingPlugin) BeforePayment(ctx context.Context,
// Calculate the limit until we'll disable edges. The way we calculate
// this limit is that we take the minimum and maximum fee peers which
// define our fee range. Within this fee range we'll scale linearly
// where each step euqals to the range divided by maxAttempts.
// where each step equals to the range divided by maxAttempts.
minFee := r.nodesByMaxFee[0].fee
maxFee := r.nodesByMaxFee[len(r.nodesByMaxFee)-1].fee
limit := minFee +
Expand Down
2 changes: 1 addition & 1 deletion swap/htlc.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const (
HtlcV3
)

// htlcScript defines an interface for the different HTLC implementations.
// HtlcScript defines an interface for the different HTLC implementations.
type HtlcScript interface {
// genSuccessWitness returns the success script to spend this htlc with
// the preimage.
Expand Down
2 changes: 1 addition & 1 deletion swap_server_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ const (
paymentTypeInvoice
)

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

0 comments on commit 557ac34

Please sign in to comment.