We need a NetworkProvider to replace the mocking signal and do other tasks.
The NetworkProvider should register the subprotocol endpoints into existing p2p connections;
The NetworkProvider needs to impl futures::Stream trait to yield networking events then dispatch to upper layers. Thus the Output of this stream should not be concreate types.
The NetworkProvider will be instaniated in cage.rs then poll the next within select!
We need a
NetworkProvider
to replace the mocking signal and do other tasks.NetworkProvider
should register the subprotocol endpoints into existing p2p connections;NetworkProvider
needs to implfutures::Stream
trait to yield networking events then dispatch to upper layers. Thus theOutput
of this stream should not be concreate types.NetworkProvider
will be instaniated incage.rs
then poll the next withinselect!