Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion server_mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions swap/htlc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
// <receiverHtlcKey> OP_CHECKSIG OP_NOTIF
//
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion test/chainnotifier_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down