use new neighbours source

This commit is contained in:
liamcottle
2024-03-23 23:36:29 +13:00
parent b9082ebedb
commit d3ac6bf014
2 changed files with 2 additions and 3 deletions

View File

@ -1639,7 +1639,7 @@
}
// add node neighbours
const neighbours = node.neighbour_info?.neighbours ?? [];
const neighbours = node.neighbours ?? [];
for(const neighbour of neighbours){
// fixme: skipping zero snr? saw some crazy long neighbours with zero snr...
@ -1686,7 +1686,7 @@
+ `<br/>Distance: ${distance}`
+ `<br/><br/>ID: ${neighbourNode.node_id} -> ${node.node_id}`
+ `<br/>Hex ID: ${neighbourNode.node_id_hex} -> ${node.node_id_hex}`
+ `<br/>Updated: ${moment(new Date(node.neighbour_info.updated_at)).fromNow()}`
+ (node.neighbours_updated_at ? `<br/>Updated: ${moment(new Date(node.neighbours_updated_at)).fromNow()}` : '')
+ `<br/><br/><span class="text-red-500">Note: Some of these super long distance 'Neighbours' don't seem right...</span>`
line.bindTooltip(tooltip, {