multi: rename NewFundingLocked to NewChannelReady
This commit is created by the following command, ```shell gofmt -d -w -r 'NewFundingLocked -> NewChannelReady' . ```
This commit is contained in:
6 files changed
+7
-7
No files matched your search
+2
-2
@@ -2909,7 +2909,7 @@ func (f *Manager) sendFundingLocked(completeChan *channeldb.OpenChannel,
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("unable to create next revocation: %v", err)
|
return fmt.Errorf("unable to create next revocation: %v", err)
|
||||||
}
|
}
|
||||||
fundingLockedMsg := lnwire.NewFundingLocked(chanID, nextRevocation)
|
fundingLockedMsg := lnwire.NewChannelReady(chanID, nextRevocation)
|
||||||
|
|
||||||
// If the channel negotiated the option-scid-alias feature bit, we'll
|
// If the channel negotiated the option-scid-alias feature bit, we'll
|
||||||
// send a TLV segment that includes an alias the peer can use in their
|
// send a TLV segment that includes an alias the peer can use in their
|
||||||
@@ -3517,7 +3517,7 @@ func (f *Manager) handleFundingLocked(peer lnpeer.Peer,
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fundingLockedMsg := lnwire.NewFundingLocked(
|
fundingLockedMsg := lnwire.NewChannelReady(
|
||||||
chanID, secondPoint,
|
chanID, secondPoint,
|
||||||
)
|
)
|
||||||
fundingLockedMsg.AliasScid = &alias
|
fundingLockedMsg.AliasScid = &alias
|
||||||
|
|||||||
+1
-1
@@ -734,7 +734,7 @@ func (l *channelLink) syncChanStates() error {
|
|||||||
"revocation: %v", err)
|
"revocation: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fundingLockedMsg := lnwire.NewFundingLocked(
|
fundingLockedMsg := lnwire.NewChannelReady(
|
||||||
l.ChanID(), nextRevocation,
|
l.ChanID(), nextRevocation,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ type ChannelReady struct {
|
|||||||
|
|
||||||
// NewFundingLocked creates a new FundingLocked message, populating it with the
|
// NewFundingLocked creates a new FundingLocked message, populating it with the
|
||||||
// necessary IDs and revocation secret.
|
// necessary IDs and revocation secret.
|
||||||
func NewFundingLocked(cid ChannelID, npcp *btcec.PublicKey) *ChannelReady {
|
func NewChannelReady(cid ChannelID, npcp *btcec.PublicKey) *ChannelReady {
|
||||||
return &ChannelReady{
|
return &ChannelReady{
|
||||||
ChanID: cid,
|
ChanID: cid,
|
||||||
NextPerCommitmentPoint: npcp,
|
NextPerCommitmentPoint: npcp,
|
||||||
|
|||||||
@@ -580,7 +580,7 @@ func TestLightningWireProtocol(t *testing.T) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
req := NewFundingLocked(ChannelID(c), pubKey)
|
req := NewChannelReady(ChannelID(c), pubKey)
|
||||||
|
|
||||||
v[0] = reflect.ValueOf(*req)
|
v[0] = reflect.ValueOf(*req)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -452,7 +452,7 @@ func newMsgFundingLocked(t testing.TB, r io.Reader) *lnwire.ChannelReady {
|
|||||||
|
|
||||||
pubKey := randPubKey(t)
|
pubKey := randPubKey(t)
|
||||||
|
|
||||||
msg := lnwire.NewFundingLocked(lnwire.ChannelID(c), pubKey)
|
msg := lnwire.NewChannelReady(lnwire.ChannelID(c), pubKey)
|
||||||
msg.ExtraData = createExtraData(t, r)
|
msg.ExtraData = createExtraData(t, r)
|
||||||
|
|
||||||
return msg
|
return msg
|
||||||
|
|||||||
+1
-1
@@ -746,7 +746,7 @@ func (p *Brontide) loadActiveChannels(chans []*channeldb.OpenChannel) (
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
fundingLockedMsg := lnwire.NewFundingLocked(
|
fundingLockedMsg := lnwire.NewChannelReady(
|
||||||
chanID, second,
|
chanID, second,
|
||||||
)
|
)
|
||||||
fundingLockedMsg.AliasScid = &aliasScid
|
fundingLockedMsg.AliasScid = &aliasScid
|
||||||
|
|||||||
Reference in new issue
Block a user