Merge pull request #686 from shuoer86/master

Fix typos
update-to-v0.27.0-beta
András Bánki-Horváth 4 months ago committed by GitHub
commit e7e0fe50d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

@ -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

@ -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
//
@ -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) {

@ -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(

Loading…
Cancel
Save