mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 06:21:40 +01:00
docs: fix typos
This commit is contained in:
parent
30348baedc
commit
b72fc9529e
6 changed files with 8 additions and 8 deletions
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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|
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue