lnwire: Adjust Stringer to standard chan id format

This would adjust logging output to use a more easily selectable short channel id components string
This commit is contained in:
Alex Bosworth 2019-01-07 17:37:10 -08:00 committed by GitHub
parent 154a8a95d8
commit 1ec1b8e9e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,5 +44,5 @@ func (c ShortChannelID) ToUint64() uint64 {
// String generates a human-readable representation of the channel ID.
func (c ShortChannelID) String() string {
return fmt.Sprintf("%d:%d:%d", c.BlockHeight, c.TxIndex, c.TxPosition)
return fmt.Sprintf("%dx%dx%d", c.BlockHeight, c.TxIndex, c.TxPosition)
}