mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-03 17:26:57 +01:00
htlcswitch: improve loggings for Keystone
This commit is contained in:
parent
6f0383bb4f
commit
31a40abd91
3 changed files with 4 additions and 2 deletions
|
@ -935,7 +935,7 @@ type Keystone struct {
|
|||
}
|
||||
|
||||
// String returns a human readable description of the Keystone.
|
||||
func (k *Keystone) String() string {
|
||||
func (k Keystone) String() string {
|
||||
return fmt.Sprintf("%s --> %s", k.InKey, k.OutKey)
|
||||
}
|
||||
|
||||
|
|
|
@ -548,6 +548,8 @@ func (m *memoryMailBox) mailCourier(cType courierType) {
|
|||
m.pktCond.L.Unlock()
|
||||
|
||||
case <-deadline:
|
||||
log.Debugf("Expiring add htlc with "+
|
||||
"keystone=%v", add.keystone())
|
||||
m.FailAdd(add)
|
||||
|
||||
case pktDone := <-m.pktReset:
|
||||
|
|
|
@ -294,7 +294,7 @@ func (c *mailboxContext) checkFails(adds []*htlcPacket) {
|
|||
|
||||
select {
|
||||
case pkt := <-c.forwards:
|
||||
c.t.Fatalf("unexpected forward: %v", pkt)
|
||||
c.t.Fatalf("unexpected forward: %v", pkt.keystone())
|
||||
case <-time.After(50 * time.Millisecond):
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue