mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-06 09:50:23 +02:00
docs: fix typos
This commit is contained in:
parent
30348baedc
commit
b72fc9529e
@ -2812,7 +2812,7 @@ func (d *DB) DeleteCanceledInvoices(_ context.Context) error {
|
|||||||
|
|
||||||
// DeleteInvoice attempts to delete the passed invoices from the database in
|
// DeleteInvoice attempts to delete the passed invoices from the database in
|
||||||
// one transaction. The passed delete references hold all keys required to
|
// 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,
|
func (d *DB) DeleteInvoice(_ context.Context,
|
||||||
invoicesToDelete []invpkg.InvoiceDeleteRef) error {
|
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
|
// 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.
|
// reduces the number of constraints we need to express in the descriptor.
|
||||||
func mapToOptional(bit lnwire.FeatureBit) lnwire.FeatureBit {
|
func mapToOptional(bit lnwire.FeatureBit) lnwire.FeatureBit {
|
||||||
if bit.IsRequired() {
|
if bit.IsRequired() {
|
||||||
|
@ -287,7 +287,7 @@ func TestTaprootSenderHtlcSpend(t *testing.T) {
|
|||||||
|
|
||||||
// Valid spend with the revocation key, sighash all.
|
// Valid spend with the revocation key, sighash all.
|
||||||
{
|
{
|
||||||
name: "revocation spend vaild sighash all",
|
name: "revocation spend valid sighash all",
|
||||||
witnessGen: htlcSenderRevocationWitnessGen(
|
witnessGen: htlcSenderRevocationWitnessGen(
|
||||||
txscript.SigHashAll, htlcScriptTree,
|
txscript.SigHashAll, htlcScriptTree,
|
||||||
),
|
),
|
||||||
@ -296,7 +296,7 @@ func TestTaprootSenderHtlcSpend(t *testing.T) {
|
|||||||
|
|
||||||
// Valid spend with the revocation key, sighash default.
|
// Valid spend with the revocation key, sighash default.
|
||||||
{
|
{
|
||||||
name: "revocation spend vaild sighash default",
|
name: "revocation spend valid sighash default",
|
||||||
witnessGen: htlcSenderRevocationWitnessGen(
|
witnessGen: htlcSenderRevocationWitnessGen(
|
||||||
txscript.SigHashDefault, htlcScriptTree,
|
txscript.SigHashDefault, htlcScriptTree,
|
||||||
),
|
),
|
||||||
@ -306,7 +306,7 @@ func TestTaprootSenderHtlcSpend(t *testing.T) {
|
|||||||
// Valid spend with the revocation key, sighash single+anyone
|
// Valid spend with the revocation key, sighash single+anyone
|
||||||
// can pay.
|
// can pay.
|
||||||
{
|
{
|
||||||
name: "revocation spend vaild sighash " +
|
name: "revocation spend valid sighash " +
|
||||||
"single|anyonecanpay",
|
"single|anyonecanpay",
|
||||||
witnessGen: htlcSenderRevocationWitnessGen(
|
witnessGen: htlcSenderRevocationWitnessGen(
|
||||||
txscript.SigHashSingle|
|
txscript.SigHashSingle|
|
||||||
|
@ -77,7 +77,7 @@ type InvoiceDB interface {
|
|||||||
// DeleteInvoice attempts to delete the passed invoices from the
|
// DeleteInvoice attempts to delete the passed invoices from the
|
||||||
// database in one transaction. The passed delete references hold all
|
// database in one transaction. The passed delete references hold all
|
||||||
// keys required to delete the invoices without also needing to
|
// keys required to delete the invoices without also needing to
|
||||||
// deserialze them.
|
// deserialize them.
|
||||||
DeleteInvoice(ctx context.Context,
|
DeleteInvoice(ctx context.Context,
|
||||||
invoicesToDelete []InvoiceDeleteRef) error
|
invoicesToDelete []InvoiceDeleteRef) error
|
||||||
|
|
||||||
|
@ -2883,7 +2883,7 @@ func (p *Brontide) createChanCloser(channel *lnwallet.LightningChannel,
|
|||||||
return nil, fmt.Errorf("cannot obtain best block")
|
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
|
var maxFee chainfee.SatPerKWeight
|
||||||
if req != nil {
|
if req != nil {
|
||||||
maxFee = req.MaxFee
|
maxFee = req.MaxFee
|
||||||
|
@ -1932,7 +1932,7 @@ func (r *rpcServer) parseOpenChannelReq(in *lnrpc.OpenChannelRequest,
|
|||||||
// if both are set.
|
// if both are set.
|
||||||
if in.FundingShim != nil && in.FundMax {
|
if in.FundingShim != nil && in.FundMax {
|
||||||
return nil, fmt.Errorf("cannot provide a psbt funding shim " +
|
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")
|
"the channel opening")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user