multi: rename lnwire.NodeAnnouncement

In preparation for adding a NodeAnnouncement2 struct along with a
NodeAnnouncement interface, this commit renames the existing
NodeAnnouncment struct to NodeAnnouncement1.
This commit is contained in:
Elle Mouton
2025-09-22 11:00:28 +02:00
parent 8372524edf
commit b8abe130a5
22 changed files with 145 additions and 131 deletions

View File

@@ -220,10 +220,10 @@ func FuzzNodeAnnouncement(f *testing.F) {
// can be represented by different underlying bytes. Instead, we
// compare the normalized string representation of each address.
assertEq := func(t *testing.T, x, y any) {
require.IsType(t, &NodeAnnouncement{}, x)
first, _ := x.(*NodeAnnouncement)
require.IsType(t, &NodeAnnouncement{}, y)
second, _ := y.(*NodeAnnouncement)
require.IsType(t, &NodeAnnouncement1{}, x)
first, _ := x.(*NodeAnnouncement1)
require.IsType(t, &NodeAnnouncement1{}, y)
second, _ := y.(*NodeAnnouncement1)
require.Equal(
t, len(first.Addresses), len(second.Addresses),