diff --git a/channeldb/invoices.go b/channeldb/invoices.go index 0c7b54436..f163f40b8 100644 --- a/channeldb/invoices.go +++ b/channeldb/invoices.go @@ -2812,7 +2812,7 @@ func (d *DB) DeleteCanceledInvoices(_ context.Context) error { // DeleteInvoice attempts to delete the passed invoices from the database in // one transaction. The passed delete references hold all keys required to -// delete the invoices without also needing to deserialze them. +// delete the invoices without also needing to deserialize them. func (d *DB) DeleteInvoice(_ context.Context, invoicesToDelete []invpkg.InvoiceDeleteRef) error { diff --git a/feature/deps.go b/feature/deps.go index 479fd1d01..b9fec2da0 100644 --- a/feature/deps.go +++ b/feature/deps.go @@ -143,7 +143,7 @@ func initSupported(features featureSet) supportedFeatures { } // mapToOptional returns the optional variant of a given feature bit pair. Our -// dependendency graph is described using only optional feature bits, which +// dependency graph is described using only optional feature bits, which // reduces the number of constraints we need to express in the descriptor. func mapToOptional(bit lnwire.FeatureBit) lnwire.FeatureBit { if bit.IsRequired() { diff --git a/input/taproot_test.go b/input/taproot_test.go index b40c25890..801b0fef4 100644 --- a/input/taproot_test.go +++ b/input/taproot_test.go @@ -287,7 +287,7 @@ func TestTaprootSenderHtlcSpend(t *testing.T) { // Valid spend with the revocation key, sighash all. { - name: "revocation spend vaild sighash all", + name: "revocation spend valid sighash all", witnessGen: htlcSenderRevocationWitnessGen( txscript.SigHashAll, htlcScriptTree, ), @@ -296,7 +296,7 @@ func TestTaprootSenderHtlcSpend(t *testing.T) { // Valid spend with the revocation key, sighash default. { - name: "revocation spend vaild sighash default", + name: "revocation spend valid sighash default", witnessGen: htlcSenderRevocationWitnessGen( txscript.SigHashDefault, htlcScriptTree, ), @@ -306,7 +306,7 @@ func TestTaprootSenderHtlcSpend(t *testing.T) { // Valid spend with the revocation key, sighash single+anyone // can pay. { - name: "revocation spend vaild sighash " + + name: "revocation spend valid sighash " + "single|anyonecanpay", witnessGen: htlcSenderRevocationWitnessGen( txscript.SigHashSingle| diff --git a/invoices/interface.go b/invoices/interface.go index cffc8e41c..0da031842 100644 --- a/invoices/interface.go +++ b/invoices/interface.go @@ -77,7 +77,7 @@ type InvoiceDB interface { // DeleteInvoice attempts to delete the passed invoices from the // database in one transaction. The passed delete references hold all // keys required to delete the invoices without also needing to - // deserialze them. + // deserialize them. DeleteInvoice(ctx context.Context, invoicesToDelete []InvoiceDeleteRef) error diff --git a/peer/brontide.go b/peer/brontide.go index 244899792..89f9e1248 100644 --- a/peer/brontide.go +++ b/peer/brontide.go @@ -2883,7 +2883,7 @@ func (p *Brontide) createChanCloser(channel *lnwallet.LightningChannel, return nil, fmt.Errorf("cannot obtain best block") } - // The req will only be set if we initaited the co-op closing flow. + // The req will only be set if we initiated the co-op closing flow. var maxFee chainfee.SatPerKWeight if req != nil { maxFee = req.MaxFee diff --git a/rpcserver.go b/rpcserver.go index 383cab3e2..8b2990f04 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -1932,7 +1932,7 @@ func (r *rpcServer) parseOpenChannelReq(in *lnrpc.OpenChannelRequest, // if both are set. if in.FundingShim != nil && in.FundMax { return nil, fmt.Errorf("cannot provide a psbt funding shim " + - "while committing the maxium wallet balance towards " + + "while committing the maximum wallet balance towards " + "the channel opening") }