ouroboros-network
ouroboros-network copied to clipboard
Network connectivity API
A home user wants to see a network connection status on Daedalus so that he/she knows the state of the network connection.
If the user receives a notification that they are in red or amber mode, Daedalus will give the user some helpful information on how to resolve common connectivity issues. There are three (at least) the following three distinct modes that the network can be operating in, each one has a red, green, amber status.
Initial block sync
red receiving <1 blocks per 10s amber receiving <10 blocks per 10s green otherwise
Recovery
red receiving <1 block per 10s amber otherwise green (not applicable)
Block chain following
red it has been more that 200s since a slot indication was received. amber it has been more than 60s since a slot indication was received. green otherwise.
This assumes that the slot time remains 20 seconds, or at least that the average time between production of new blocks is 20 seconds.
The above is just an initial draft which needs to be communicated with the Daedalus team, also note that we don't have recovery mode any more :), though we have forks (which a node will first observe as a fork of a chain of headers).