mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-31 17:51:33 +02:00
htlcswitch: log regular channel ID when registering channels
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
|||||||
|
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
|
|
||||||
|
"github.com/davecgh/go-spew/spew"
|
||||||
"github.com/go-errors/errors"
|
"github.com/go-errors/errors"
|
||||||
"github.com/lightningnetwork/lnd/lnrpc"
|
"github.com/lightningnetwork/lnd/lnrpc"
|
||||||
"github.com/lightningnetwork/lnd/lnwallet"
|
"github.com/lightningnetwork/lnd/lnwallet"
|
||||||
@@ -732,8 +733,9 @@ func (s *Switch) addLink(link ChannelLink) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Infof("Added channel link with short_chan_id=(%v), bandwidth=%v",
|
log.Infof("Added channel link with chan_id=%v, short_chan_id=(%v), "+
|
||||||
link.ShortChanID(), link.Bandwidth())
|
"bandwidth=%v", link.ChanID(), spew.Sdump(link.ShortChanID()),
|
||||||
|
link.Bandwidth())
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user