mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-27 17:21:09 +02:00
routing: add and fix log statements
This commit is contained in:
parent
ee40d3dd58
commit
b6d65752f7
@ -455,11 +455,17 @@ func (p *BimodalEstimator) probabilityFormula(capacityMsat, successAmountMsat,
|
|||||||
|
|
||||||
// failAmount should be capacity at max.
|
// failAmount should be capacity at max.
|
||||||
if failAmount > capacity {
|
if failAmount > capacity {
|
||||||
|
log.Debugf("Correcting failAmount %v to capacity %v",
|
||||||
|
failAmount, capacity)
|
||||||
|
|
||||||
failAmount = capacity
|
failAmount = capacity
|
||||||
}
|
}
|
||||||
|
|
||||||
// successAmount should be capacity at max.
|
// successAmount should be capacity at max.
|
||||||
if successAmount > capacity {
|
if successAmount > capacity {
|
||||||
|
log.Debugf("Correcting successAmount %v to capacity %v",
|
||||||
|
successAmount, capacity)
|
||||||
|
|
||||||
successAmount = capacity
|
successAmount = capacity
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -468,7 +474,7 @@ func (p *BimodalEstimator) probabilityFormula(capacityMsat, successAmountMsat,
|
|||||||
// happen if a large channel gets closed and smaller ones remain, but
|
// happen if a large channel gets closed and smaller ones remain, but
|
||||||
// it should recover with the time decay.
|
// it should recover with the time decay.
|
||||||
if failAmount <= successAmount {
|
if failAmount <= successAmount {
|
||||||
log.Tracef("fail amount (%v) is larger than or equal the "+
|
log.Tracef("fail amount (%v) is smaller than or equal the "+
|
||||||
"success amount (%v) for capacity (%v)",
|
"success amount (%v) for capacity (%v)",
|
||||||
failAmountMsat, successAmountMsat, capacityMsat)
|
failAmountMsat, successAmountMsat, capacityMsat)
|
||||||
|
|
||||||
|
@ -1689,7 +1689,7 @@ func (r *ChannelRouter) processUpdate(msg interface{},
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debugf("New channel update applied: %v",
|
log.Tracef("New channel update applied: %v",
|
||||||
newLogClosure(func() string { return spew.Sdump(msg) }))
|
newLogClosure(func() string { return spew.Sdump(msg) }))
|
||||||
r.stats.incNumChannelUpdates()
|
r.stats.incNumChannelUpdates()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user