Open mhchia opened 6 years ago
Currently, we only have the simulation of floodsub/gossipsub by jannikluhn. We should have one for the sharding-p2p layer.
The simulation should be able to be done by
host.Host
Swarm
Node
The best situation is we should be able to switch to simulation mode by modifying as little code as possible
Edited: Added the link to mock components and example usages.
What is wrong?
Currently, we only have the simulation of floodsub/gossipsub by jannikluhn. We should have one for the sharding-p2p layer.
How can it be fixed?
The simulation should be able to be done by
host.Host
with our self-definedSwarm
(Network layer). This can be done by replacing them with go channels.Node
instances in one processThe best situation is we should be able to switch to simulation mode by modifying as little code as possible
Edited: Added the link to mock components and example usages.