invoices/invoiceregistry: remove debug spew
This commit is contained in:
parent
77041c131a
commit
310e20f8b7
@ -203,6 +203,12 @@ type ContractTerm struct {
|
|||||||
Features *lnwire.FeatureVector
|
Features *lnwire.FeatureVector
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// String returns a human-readable description of the prominent contract terms.
|
||||||
|
func (c ContractTerm) String() string {
|
||||||
|
return fmt.Sprintf("amt=%v, expiry=%v, final_cltv_delta=%v", c.Value,
|
||||||
|
c.Expiry, c.FinalCltvDelta)
|
||||||
|
}
|
||||||
|
|
||||||
// Invoice is a payment invoice generated by a payee in order to request
|
// Invoice is a payment invoice generated by a payee in order to request
|
||||||
// payment for some good or service. The inclusion of invoices within Lightning
|
// payment for some good or service. The inclusion of invoices within Lightning
|
||||||
// creates a payment work flow for merchants very similar to that of the
|
// creates a payment work flow for merchants very similar to that of the
|
||||||
|
@ -7,7 +7,6 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/davecgh/go-spew/spew"
|
|
||||||
"github.com/lightningnetwork/lnd/channeldb"
|
"github.com/lightningnetwork/lnd/channeldb"
|
||||||
"github.com/lightningnetwork/lnd/clock"
|
"github.com/lightningnetwork/lnd/clock"
|
||||||
"github.com/lightningnetwork/lnd/lntypes"
|
"github.com/lightningnetwork/lnd/lntypes"
|
||||||
@ -503,11 +502,8 @@ func (i *InvoiceRegistry) AddInvoice(invoice *channeldb.Invoice,
|
|||||||
|
|
||||||
i.Lock()
|
i.Lock()
|
||||||
|
|
||||||
log.Debugf("Invoice(%v): added %v", paymentHash,
|
log.Debugf("Invoice(%v): added with terms %v", paymentHash,
|
||||||
newLogClosure(func() string {
|
invoice.Terms)
|
||||||
return spew.Sdump(invoice)
|
|
||||||
}),
|
|
||||||
)
|
|
||||||
|
|
||||||
addIndex, err := i.cdb.AddInvoice(invoice, paymentHash)
|
addIndex, err := i.cdb.AddInvoice(invoice, paymentHash)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user