passesMapFilter

fun Node.passesMapFilter(filter: NodeMapFilter, nowSeconds: Long): Boolean(source)

One node against every filter.

The node-level rules match the node list's query exactly, because they carry its labels: direct means hopsAway == 0 (a node whose distance was never measured, -1, is not direct) and unknown means a node that has not sent a short name.

NodeMapFilter.showIgnored is the one place the map deliberately differs. The node list segregates (isIgnored == showIgnored, so switching it on shows only ignored nodes); here it reads literally and adds them, because a map of nothing but ignored nodes is not a view anyone asked for.