Updated networking flow (markdown)

Ștefan Talpalaru 2020-03-03 16:40:18 +01:00
parent 2de2524dce
commit 28b5e739e5
1 changed files with 4 additions and 3 deletions

@ -26,8 +26,9 @@ beacon_chain/libp2p_backend.nim:
vendor/nim-libp2p/libp2p/switch.nim: vendor/nim-libp2p/libp2p/switch.nim:
- Switch.start() - Switch.start()
- for each Switch.transports and each Switch.peerInfo awaits Transport.listen(MultiAddress, inner `handle` closure) - for each Switch.transports and each Switch.peerInfo awaits Transport.listen(MultiAddress, Switch.start.handle)
- returns a seq of these futures - (returns a seq of these futures)
- awaits PubSub.start() on Switch.pubSub
- Switch.start.handle(Connection) - Switch.start.handle(Connection)
- awaits Switch.upgradeIncoming(Connection) - awaits Switch.upgradeIncoming(Connection)
- awaits Connection.close() - awaits Connection.close()