Matthew Toseland wrote:
> There are two flags on the FNPDisconnect, iirc one is set if we want the 
> distant node to remove our connection (when we drop the LRU connection), and 
> isn't set when we're just shutting down.

PeerManager.disconnect has two boolean arguments, sendDisconnectMessage
and waitForAck... it looks like OpennetManager always sets the first one
to true, the second can be true or false but it isn't passed to the
FNPDisconnect constructor. I could be misreading the code though.

> Hmmm, so introduce the node, let it run for a while, record the average peer 
> uptime at various stages, then dump it and start again?

Exactly. We could also test whether data reachability gets better (or
worse!) over time, etc.

> Yes I do think that long lived nodes tend to have long lived neighbours. 
> Opennet drops the least recently useful node, remember? So "good" nodes will 
> tend to have "good" peers, seems a reasonable expectation?

Yeah it's definitely a reasonable expectation, just wondering whether we
can confirm it empirically.

Cheers,
Michael

Reply via email to