From 1ec1b8e9e79aa671190bfc4b2a46c0adba0705ec Mon Sep 17 00:00:00 2001 From: Alex Bosworth Date: Mon, 7 Jan 2019 17:37:10 -0800 Subject: [PATCH] lnwire: Adjust Stringer to standard chan id format This would adjust logging output to use a more easily selectable short channel id components string --- lnwire/short_channel_id.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnwire/short_channel_id.go b/lnwire/short_channel_id.go index b2b980aa2..57492b30e 100644 --- a/lnwire/short_channel_id.go +++ b/lnwire/short_channel_id.go @@ -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) }