Skip to content

Commit e7e0fe5

Browse files
authored
Merge pull request #686 from shuoer86/master
Fix typos
2 parents ad7d80a + 8421ae6 commit e7e0fe5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

interface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ type LoopInSwapInfo struct { // nolint
304304
// where the loop-in funds may be paid.
305305
HtlcAddressP2WSH btcutil.Address
306306

307-
// HtlcAddresP2TR contains the v3 (pay to taproot) htlc address.
307+
// HtlcAddressP2TR contains the v3 (pay to taproot) htlc address.
308308
HtlcAddressP2TR btcutil.Address
309309

310310
// ServerMessages is the human-readable message received from the loop

server_mock_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type serverMock struct {
4545
// preimagePush is a channel that preimage pushes are sent into.
4646
preimagePush chan lntypes.Preimage
4747

48-
// cancelSwap is a channel that swap cancelations are sent into.
48+
// cancelSwap is a channel that swap cancellations are sent into.
4949
cancelSwap chan *outCancelDetails
5050

5151
lnd *test.LndMockServices

swap/htlc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ type HtlcScriptV2 struct {
326326
senderKey [33]byte
327327
}
328328

329-
// newHTLCScriptV2 construct an HtlcScipt with the HTLC V2 witness script.
329+
// newHTLCScriptV2 construct an HtlcScript with the HTLC V2 witness script.
330330
//
331331
// <receiverHtlcKey> OP_CHECKSIG OP_NOTIF
332332
//
@@ -524,7 +524,7 @@ func parsePubKey(muSig2Version input.MuSig2Version, key [33]byte) (
524524
}
525525
}
526526

527-
// newHTLCScriptV3 constructs a HtlcScipt with the HTLC V3 taproot script.
527+
// newHTLCScriptV3 constructs a HtlcScript with the HTLC V3 taproot script.
528528
func newHTLCScriptV3(muSig2Version input.MuSig2Version, cltvExpiry int32,
529529
senderInternalKey, receiverInternalKey, senderHtlcKey,
530530
receiverHtlcKey [33]byte, swapHash lntypes.Hash) (*HtlcScriptV3, error) {

test/chainnotifier_mock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func (c *mockChainNotifier) RegisterConfirmationsNtfn(ctx context.Context,
133133
r := c.confRegistrations[i]
134134

135135
// Whichever conf notifier catches the confirmation
136-
// will forward it to all matching subscibers.
136+
// will forward it to all matching subscribers.
137137
if bytes.Equal(m.Tx.TxOut[0].PkScript, r.PkScript) {
138138
// Unregister the "notifier".
139139
c.confRegistrations = append(

0 commit comments

Comments
 (0)