We introduced a function that allows to know ahead of time who we can gossip to by calling create_gossip.
We want to test it.
The best way, would be to integrate it in the integration test framework so we can benefit from soak testing.
In src/dev_utils/network.rs, we currently ignore errors of type: InvalidPeerState and InvalidSelfState after calling create_gossip. Instead, we should first get the gossip_recipients and if we get one of these errors but the recipient was in that list, panic.