multi: move LightningNode struct to models package

This commit is contained in:
Elle Mouton
2024-10-29 18:25:07 +02:00
parent ccb8f0eeb8
commit 6e13898981
20 changed files with 252 additions and 246 deletions

View File

@@ -1964,7 +1964,7 @@ func (d *AuthenticatedGossiper) addNode(msg *lnwire.NodeAnnouncement,
timestamp := time.Unix(int64(msg.Timestamp), 0)
features := lnwire.NewFeatureVector(msg.Features, lnwire.Features)
node := &graphdb.LightningNode{
node := &models.LightningNode{
HaveNodeAnnouncement: true,
LastUpdate: timestamp,
Addresses: msg.Addresses,