diff --git a/loopdb/protocol_version.go b/loopdb/protocol_version.go index 180f644..f2a2337 100644 --- a/loopdb/protocol_version.go +++ b/loopdb/protocol_version.go @@ -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 diff --git a/routing_plugin.go b/routing_plugin.go index 146169d..7034729 100644 --- a/routing_plugin.go +++ b/routing_plugin.go @@ -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 + diff --git a/swap/htlc.go b/swap/htlc.go index f30704b..dfba66e 100644 --- a/swap/htlc.go +++ b/swap/htlc.go @@ -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. diff --git a/swap_server_client.go b/swap_server_client.go index 60150ca..a40aa3a 100644 --- a/swap_server_client.go +++ b/swap_server_client.go @@ -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.