From 7669559cf514bd2060dc49c759c822d41e4f90a5 Mon Sep 17 00:00:00 2001 From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:56:21 +0800 Subject: [PATCH 1/4] fix typo interface.go --- interface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 84a4535c8d5cc19d96ebc88e3fbc8e0a4e388128 Mon Sep 17 00:00:00 2001 From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:56:29 +0800 Subject: [PATCH 2/4] fix typo server_mock_test.go --- server_mock_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 921bdf05bd682371f1f0d17050178f102b46caa2 Mon Sep 17 00:00:00 2001 From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:56:38 +0800 Subject: [PATCH 3/4] fix typo swap/htlc.go --- swap/htlc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { From 8421ae6ca4790d22a1ba256de74fc8e670581ee2 Mon Sep 17 00:00:00 2001 From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:56:44 +0800 Subject: [PATCH 4/4] fix typo test/chainnotifier_mock.go --- test/chainnotifier_mock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(