multi: rename AnnounceSignatures to AnnounceSignatures1

In preparation for adding a new message, AnnounceSignatures2 along with
an AnnounceSignatures interface, we rename the existing message to
AnnounceSignatures1.
This commit is contained in:
Elle Mouton committed 2024-09-18 16:13:16 +02:00
1 parent edd9ade7e5
commit 05d76b696d
14 files changed
+47 -44

No files matched your search

+2 -2
View File
@@ -4145,7 +4145,7 @@ func (f *Manager) ensureInitialForwardingPolicy(chanID lnwire.ChannelID,
type chanAnnouncement struct {
chanAnn *lnwire.ChannelAnnouncement
chanUpdateAnn *lnwire.ChannelUpdate
chanProof *lnwire.AnnounceSignatures
chanProof *lnwire.AnnounceSignatures1
}
// newChanAnnouncement creates the authenticated channel announcement messages
@@ -4337,7 +4337,7 @@ func (f *Manager) newChanAnnouncement(localPubKey,
// Finally, we'll generate the announcement proof which we'll use to
// provide the other side with the necessary signatures required to
// allow them to reconstruct the full channel announcement.
proof := &lnwire.AnnounceSignatures{
proof := &lnwire.AnnounceSignatures1{
ChannelID: chanID,
ShortChannelID: shortChanID,
}
+1 -1
View File
@@ -1297,7 +1297,7 @@ func assertAnnouncementSignatures(t *testing.T, alice, bob *testNode) {
gotNodeAnnouncement := false
for _, msg := range announcements {
switch msg.(type) {
case *lnwire.AnnounceSignatures:
case *lnwire.AnnounceSignatures1:
gotAnnounceSignatures = true
case *lnwire.NodeAnnouncement:
gotNodeAnnouncement = true