mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-21 14:04:06 +01:00
lnwire: remove pointer receiver from ToUint64 for ShortChannelID
This commit is contained in:
parent
3fa2e08665
commit
aa7f83d72e
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue