Skip to content

Commit

Permalink
Merge pull request #8303 from AtomicInnovation321/master
Browse files Browse the repository at this point in the history
docs: fix typos
  • Loading branch information
guggero authored Dec 21, 2023
2 parents 30348ba + b72fc95 commit 4d8fa34
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion channeldb/invoices.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion feature/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
6 changes: 3 additions & 3 deletions input/taproot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand All @@ -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,
),
Expand All @@ -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|
Expand Down
2 changes: 1 addition & 1 deletion invoices/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion peer/brontide.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit 4d8fa34

Please sign in to comment.