From aa7f83d72e7e048b33184e10c3ec0ab9fd199cab Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 5 Apr 2018 17:59:50 -0700 Subject: [PATCH] lnwire: remove pointer receiver from ToUint64 for ShortChannelID --- 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 36d38a3e..b2b980aa 100644 --- a/lnwire/short_channel_id.go +++ b/lnwire/short_channel_id.go @@ -36,7 +36,7 @@ func NewShortChanIDFromInt(chanID uint64) ShortChannelID { // ToUint64 converts the ShortChannelID into a compact format encoded within a // uint64 (8 bytes). -func (c *ShortChannelID) ToUint64() uint64 { +func (c ShortChannelID) ToUint64() uint64 { // TODO(roasbeef): explicit error on overflow? return ((uint64(c.BlockHeight) << 40) | (uint64(c.TxIndex) << 16) | (uint64(c.TxPosition)))