multi: rename ChannelAnnouncement to ChannelAnnouncment1
In preparation for adding the new ChannelAnnouncement2 message along with a ChannelAnnouncement interface, we rename the existing message to ChannelAnnouncement1.
This commit is contained in:
17 files changed
+55
-54
No files matched your search
+2
-2
@@ -4143,7 +4143,7 @@ func (f *Manager) ensureInitialForwardingPolicy(chanID lnwire.ChannelID,
|
||||
// chanAnnouncement encapsulates the two authenticated announcements that we
|
||||
// send out to the network after a new channel has been created locally.
|
||||
type chanAnnouncement struct {
|
||||
chanAnn *lnwire.ChannelAnnouncement
|
||||
chanAnn *lnwire.ChannelAnnouncement1
|
||||
chanUpdateAnn *lnwire.ChannelUpdate
|
||||
chanProof *lnwire.AnnounceSignatures1
|
||||
}
|
||||
@@ -4168,7 +4168,7 @@ func (f *Manager) newChanAnnouncement(localPubKey,
|
||||
// The unconditional section of the announcement is the ShortChannelID
|
||||
// itself which compactly encodes the location of the funding output
|
||||
// within the blockchain.
|
||||
chanAnn := &lnwire.ChannelAnnouncement{
|
||||
chanAnn := &lnwire.ChannelAnnouncement1{
|
||||
ShortChannelID: shortChanID,
|
||||
Features: lnwire.NewRawFeatureVector(),
|
||||
ChainHash: chainHash,
|
||||
|
||||
@@ -1208,7 +1208,7 @@ func assertChannelAnnouncements(t *testing.T, alice, bob *testNode,
|
||||
gotChannelUpdate := false
|
||||
for _, msg := range announcements {
|
||||
switch m := msg.(type) {
|
||||
case *lnwire.ChannelAnnouncement:
|
||||
case *lnwire.ChannelAnnouncement1:
|
||||
gotChannelAnnouncement = true
|
||||
case *lnwire.ChannelUpdate:
|
||||
|
||||
|
||||
Reference in new issue
Block a user