docs: fix typos

This commit is contained in:
bitcoin-lightning 2023-12-21 15:21:35 +00:00
parent 30348baedc
commit b72fc9529e
6 changed files with 8 additions and 8 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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")
}