@@ -698,7 +698,7 @@ func (f *Manager) start() error {
698698 }
699699
700700 for _ , channel := range allChannels {
701- chanID := lnwire .NewChanIDFromOutPoint (& channel .FundingOutpoint )
701+ chanID := lnwire .NewChanIDFromOutPoint (channel .FundingOutpoint )
702702
703703 // For any channels that were in a pending state when the
704704 // daemon was last connected, the Funding Manager will
@@ -1113,7 +1113,7 @@ func (f *Manager) stateStep(channel *channeldb.OpenChannel,
11131113 channelState channelOpeningState ,
11141114 updateChan chan <- * lnrpc.OpenStatusUpdate ) error {
11151115
1116- chanID := lnwire .NewChanIDFromOutPoint (& channel .FundingOutpoint )
1116+ chanID := lnwire .NewChanIDFromOutPoint (channel .FundingOutpoint )
11171117 log .Debugf ("Channel(%v) with ShortChanID %v has opening state %v" ,
11181118 chanID , shortChanID , channelState )
11191119
@@ -1273,7 +1273,7 @@ func (f *Manager) advancePendingChannelState(
12731273
12741274 // Find and close the discoverySignal for this channel such
12751275 // that ChannelReady messages will be processed.
1276- chanID := lnwire .NewChanIDFromOutPoint (& channel .FundingOutpoint )
1276+ chanID := lnwire .NewChanIDFromOutPoint (channel .FundingOutpoint )
12771277 discoverySignal , ok := f .localDiscoverySignals .Load (chanID )
12781278 if ok {
12791279 close (discoverySignal )
@@ -1339,7 +1339,7 @@ func (f *Manager) advancePendingChannelState(
13391339 }
13401340
13411341 // Success, funding transaction was confirmed.
1342- chanID := lnwire .NewChanIDFromOutPoint (& channel .FundingOutpoint )
1342+ chanID := lnwire .NewChanIDFromOutPoint (channel .FundingOutpoint )
13431343 log .Debugf ("ChannelID(%v) is now fully confirmed! " +
13441344 "(shortChanID=%v)" , chanID , confChannel .shortChanID )
13451345
@@ -2246,7 +2246,7 @@ func (f *Manager) continueFundingAccept(resCtx *reservationWithCtx,
22462246 // properly synchronize with the writeHandler goroutine, we add a new
22472247 // channel to the barriers map which will be closed once the channel is
22482248 // fully open.
2249- channelID := lnwire .NewChanIDFromOutPoint (outPoint )
2249+ channelID := lnwire .NewChanIDFromOutPoint (* outPoint )
22502250 log .Debugf ("Creating chan barrier for ChanID(%v)" , channelID )
22512251
22522252 // The next message that advances the funding flow will reference the
@@ -2421,7 +2421,7 @@ func (f *Manager) fundeeProcessFundingCreated(peer lnpeer.Peer,
24212421 // properly synchronize with the writeHandler goroutine, we add a new
24222422 // channel to the barriers map which will be closed once the channel is
24232423 // fully open.
2424- channelID := lnwire .NewChanIDFromOutPoint (& fundingOut )
2424+ channelID := lnwire .NewChanIDFromOutPoint (fundingOut )
24252425 log .Debugf ("Creating chan barrier for ChanID(%v)" , channelID )
24262426
24272427 fundingSigned := & lnwire.FundingSigned {}
@@ -2582,7 +2582,7 @@ func (f *Manager) funderProcessFundingSigned(peer lnpeer.Peer,
25822582 // process the channel confirmation fully before we receive a
25832583 // channel_ready message.
25842584 fundingPoint := resCtx .reservation .FundingOutpoint ()
2585- permChanID := lnwire .NewChanIDFromOutPoint (fundingPoint )
2585+ permChanID := lnwire .NewChanIDFromOutPoint (* fundingPoint )
25862586 f .localDiscoverySignals .Store (permChanID , make (chan struct {}))
25872587
25882588 // We have to store the forwardingPolicy before the reservation context
@@ -2788,7 +2788,7 @@ func (f *Manager) fundingTimeout(c *channeldb.OpenChannel,
27882788
27892789 // Create channel identifier and set the channel ID.
27902790 cid := newChanIdentifier (pendingID )
2791- cid .setChanID (lnwire .NewChanIDFromOutPoint (& c .FundingOutpoint ))
2791+ cid .setChanID (lnwire .NewChanIDFromOutPoint (c .FundingOutpoint ))
27922792
27932793 // TODO(halseth): should this send be made
27942794 // reliable?
@@ -2953,7 +2953,7 @@ func (f *Manager) waitForFundingConfirmation(
29532953
29542954 fundingPoint := completeChan .FundingOutpoint
29552955 log .Infof ("ChannelPoint(%v) is now active: ChannelID(%v)" ,
2956- fundingPoint , lnwire .NewChanIDFromOutPoint (& fundingPoint ))
2956+ fundingPoint , lnwire .NewChanIDFromOutPoint (fundingPoint ))
29572957
29582958 // With the block height and the transaction index known, we can
29592959 // construct the compact chanID which is used on the network to unique
@@ -3071,7 +3071,7 @@ func (f *Manager) handleFundingConfirmation(
30713071 confChannel * confirmedChannel ) error {
30723072
30733073 fundingPoint := completeChan .FundingOutpoint
3074- chanID := lnwire .NewChanIDFromOutPoint (& fundingPoint )
3074+ chanID := lnwire .NewChanIDFromOutPoint (fundingPoint )
30753075
30763076 // TODO(roasbeef): ideally persistent state update for chan above
30773077 // should be abstracted
@@ -3147,7 +3147,7 @@ func (f *Manager) handleFundingConfirmation(
31473147func (f * Manager ) sendChannelReady (completeChan * channeldb.OpenChannel ,
31483148 channel * lnwallet.LightningChannel ) error {
31493149
3150- chanID := lnwire .NewChanIDFromOutPoint (& completeChan .FundingOutpoint )
3150+ chanID := lnwire .NewChanIDFromOutPoint (completeChan .FundingOutpoint )
31513151
31523152 var peerKey [33 ]byte
31533153 copy (peerKey [:], completeChan .IdentityPub .SerializeCompressed ())
@@ -3374,7 +3374,7 @@ func (f *Manager) addToRouterGraph(completeChan *channeldb.OpenChannel,
33743374 peerAlias * lnwire.ShortChannelID ,
33753375 ourPolicy * models.ChannelEdgePolicy ) error {
33763376
3377- chanID := lnwire .NewChanIDFromOutPoint (& completeChan .FundingOutpoint )
3377+ chanID := lnwire .NewChanIDFromOutPoint (completeChan .FundingOutpoint )
33783378
33793379 fwdMinHTLC , fwdMaxHTLC := f .extractAnnounceParams (completeChan )
33803380
@@ -3465,7 +3465,7 @@ func (f *Manager) annAfterSixConfs(completeChan *channeldb.OpenChannel,
34653465 }
34663466
34673467 chanID := lnwire .NewChanIDFromOutPoint (
3468- & completeChan .FundingOutpoint ,
3468+ completeChan .FundingOutpoint ,
34693469 )
34703470 pubKey := peer .PubKey ()
34713471 log .Debugf ("Sending our NodeAnnouncement for " +
@@ -3530,7 +3530,7 @@ func (f *Manager) annAfterSixConfs(completeChan *channeldb.OpenChannel,
35303530 }
35313531
35323532 fundingPoint := completeChan .FundingOutpoint
3533- chanID := lnwire .NewChanIDFromOutPoint (& fundingPoint )
3533+ chanID := lnwire .NewChanIDFromOutPoint (fundingPoint )
35343534
35353535 log .Infof ("Announcing ChannelPoint(%v), short_chan_id=%v" ,
35363536 & fundingPoint , shortChanID )
@@ -3964,7 +3964,7 @@ func (f *Manager) handleChannelReadyReceived(channel *channeldb.OpenChannel,
39643964 scid * lnwire.ShortChannelID , pendingChanID [32 ]byte ,
39653965 updateChan chan <- * lnrpc.OpenStatusUpdate ) error {
39663966
3967- chanID := lnwire .NewChanIDFromOutPoint (& channel .FundingOutpoint )
3967+ chanID := lnwire .NewChanIDFromOutPoint (channel .FundingOutpoint )
39683968
39693969 // Since we've sent+received funding locked at this point, we
39703970 // can clean up the pending musig2 nonce state.
@@ -3981,7 +3981,7 @@ func (f *Manager) handleChannelReadyReceived(channel *channeldb.OpenChannel,
39813981 // we'll just return, letting the next iteration of the loop
39823982 // check again.
39833983 var defaultAlias lnwire.ShortChannelID
3984- chanID := lnwire .NewChanIDFromOutPoint (& channel .FundingOutpoint )
3984+ chanID := lnwire .NewChanIDFromOutPoint (channel .FundingOutpoint )
39853985 foundAlias , _ := f .cfg .AliasManager .GetPeerAlias (chanID )
39863986 if foundAlias == defaultAlias {
39873987 return nil
@@ -4876,7 +4876,7 @@ func (f *Manager) pruneZombieReservations() {
48764876 log .Warnf (err .Error ())
48774877
48784878 chanID := lnwire .NewChanIDFromOutPoint (
4879- resCtx .reservation .FundingOutpoint (),
4879+ * resCtx .reservation .FundingOutpoint (),
48804880 )
48814881
48824882 // Create channel identifier and set the channel ID.
0 commit comments