diff --git a/lnwire/short_channel_id.go b/lnwire/short_channel_id.go index d4da518b7..73e37ab96 100644 --- a/lnwire/short_channel_id.go +++ b/lnwire/short_channel_id.go @@ -56,6 +56,12 @@ func (c ShortChannelID) String() string { return fmt.Sprintf("%d:%d:%d", c.BlockHeight, c.TxIndex, c.TxPosition) } +// AltString generates a human-readable representation of the channel ID +// with 'x' as a separator. +func (c ShortChannelID) AltString() string { + return fmt.Sprintf("%dx%dx%d", c.BlockHeight, c.TxIndex, c.TxPosition) +} + // Record returns a TLV record that can be used to encode/decode a // ShortChannelID to/from a TLV stream. func (c *ShortChannelID) Record() tlv.Record {