mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-11 14:48:14 +01:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user