diff --git a/interface.go b/interface.go index 2d1d191..1a48492 100644 --- a/interface.go +++ b/interface.go @@ -304,7 +304,7 @@ type LoopInSwapInfo struct { // nolint // where the loop-in funds may be paid. HtlcAddressP2WSH btcutil.Address - // HtlcAddresP2TR contains the v3 (pay to taproot) htlc address. + // HtlcAddressP2TR contains the v3 (pay to taproot) htlc address. HtlcAddressP2TR btcutil.Address // ServerMessages is the human-readable message received from the loop diff --git a/server_mock_test.go b/server_mock_test.go index 18ae09f..78a8528 100644 --- a/server_mock_test.go +++ b/server_mock_test.go @@ -45,7 +45,7 @@ type serverMock struct { // preimagePush is a channel that preimage pushes are sent into. preimagePush chan lntypes.Preimage - // cancelSwap is a channel that swap cancelations are sent into. + // cancelSwap is a channel that swap cancellations are sent into. cancelSwap chan *outCancelDetails lnd *test.LndMockServices diff --git a/swap/htlc.go b/swap/htlc.go index daa7ef3..f342618 100644 --- a/swap/htlc.go +++ b/swap/htlc.go @@ -326,7 +326,7 @@ type HtlcScriptV2 struct { senderKey [33]byte } -// newHTLCScriptV2 construct an HtlcScipt with the HTLC V2 witness script. +// newHTLCScriptV2 construct an HtlcScript with the HTLC V2 witness script. // // OP_CHECKSIG OP_NOTIF // @@ -524,7 +524,7 @@ func parsePubKey(muSig2Version input.MuSig2Version, key [33]byte) ( } } -// newHTLCScriptV3 constructs a HtlcScipt with the HTLC V3 taproot script. +// newHTLCScriptV3 constructs a HtlcScript with the HTLC V3 taproot script. func newHTLCScriptV3(muSig2Version input.MuSig2Version, cltvExpiry int32, senderInternalKey, receiverInternalKey, senderHtlcKey, receiverHtlcKey [33]byte, swapHash lntypes.Hash) (*HtlcScriptV3, error) { diff --git a/test/chainnotifier_mock.go b/test/chainnotifier_mock.go index d0b41cd..836e50f 100644 --- a/test/chainnotifier_mock.go +++ b/test/chainnotifier_mock.go @@ -133,7 +133,7 @@ func (c *mockChainNotifier) RegisterConfirmationsNtfn(ctx context.Context, r := c.confRegistrations[i] // Whichever conf notifier catches the confirmation - // will forward it to all matching subscibers. + // will forward it to all matching subscribers. if bytes.Equal(m.Tx.TxOut[0].PkScript, r.PkScript) { // Unregister the "notifier". c.confRegistrations = append(