neutrino
neutrino copied to clipboard
forAllOutboundPeers & forAllPeers
Was taking a look at the source code and found this: https://github.com/lightninglabs/neutrino/blob/e89b36762dd46f4e5c1fc8348b5582265f4a74ce/neutrino.go#L106-L121
Shouldn't forAllOutboundPeers
only apply closure to ps.outboundPeers
?
All of neutrino’s peers are outbound at the moment. Persistent just means that we will retry a connection to that peer if we get disconnected.
Naming could probably distinguish better, but I believe the behavior is correct