From 31aaa2c8ec763ca3da0136e2a50b7e9d0412798f Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Sat, 7 Dec 2019 10:42:05 -0600 Subject: [PATCH] update with latest changes --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ea9be7e..8203960 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,8 @@ This implementation has a bare minimum set of components in order to provide a f - Secio - Mplex - Identify -- FloodSub (with gossipsub being added in the near future) +- FloodSub +- GossipSub This stack reflects the minimal requirements for the upcoming Eth2 implementation. @@ -111,8 +112,7 @@ proc createSwitch(ma: MultiAddress): (Switch, PeerInfo) = ## Helper to create a swith let seckey = PrivateKey.random(RSA) # use a random key for peer id - var peerInfo: PeerInfo - peerInfo.peerId = some(PeerID.init(seckey)) # create a peer id and assign + var peerInfo = PeerInfo.init(seckey) # create a peer id and assign peerInfo.addrs.add(ma) # set this peer's multiaddresses (can be any number) let identify = newIdentify(peerInfo) # create the identify proto