Merge pull request #803 from status-im/misc/bump-libp2p

bumping libp2p to latest master
This commit is contained in:
Ștefan Talpalaru 2020-03-12 01:57:11 +01:00 committed by GitHub
commit 1caafba79c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 9 deletions

View File

@ -339,21 +339,30 @@ proc peerGroupTests(): Future[bool] {.async.} =
slot1.peers = @[peers[3], peers[4], peers[5]] slot1.peers = @[peers[3], peers[4], peers[5]]
var slot2 = newPeerSlot[SimplePeer, SimplePeerKey](sman) var slot2 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot2.peers = @[peers[6], peers[7], peers[8]] slot2.peers = @[peers[6], peers[7], peers[8]]
var slot3 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot3.peers = @[peers[9], peers[10], peers[11]] var slot31 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
var slot4 = newPeerSlot[SimplePeer, SimplePeerKey](sman) slot31.peers = @[peers[9], peers[10], peers[11]]
slot4.peers = @[peers[12], peers[13], peers[14]] var slot32 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot32.peers = @[peers[9], peers[10], peers[11]]
var slot33 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot33.peers = @[peers[9], peers[10], peers[11]]
var slot41 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot41.peers = @[peers[12], peers[13], peers[14]]
var slot42 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot42.peers = @[peers[12], peers[13], peers[14]]
var slot5 = newPeerSlot[SimplePeer, SimplePeerKey](sman) var slot5 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot5.peers = @[peers[15], peers[16], peers[17]] slot5.peers = @[peers[15], peers[16], peers[17]]
var group0 = newPeerGroup(sman) var group0 = newPeerGroup(sman)
group0.slots = @[slot0, slot1, slot2] group0.slots = @[slot0, slot1, slot2]
var group1 = newPeerGroup(sman) var group1 = newPeerGroup(sman)
group1.slots = @[slot0, slot1, slot3] group1.slots = @[slot0, slot1, slot31]
var group2 = newPeerGroup(sman) var group2 = newPeerGroup(sman)
group2.slots = @[slot0, slot3, slot4] group2.slots = @[slot0, slot32, slot41]
var group3 = newPeerGroup(sman) var group3 = newPeerGroup(sman)
group3.slots = @[slot3, slot4, slot5] group3.slots = @[slot33, slot42, slot5]
var s0 = await group0.getBlocks(Slot(10000), 10'u64) var s0 = await group0.getBlocks(Slot(10000), 10'u64)
cleanup() cleanup()

2
vendor/nim-chronos vendored

@ -1 +1 @@
Subproject commit fe1b1a698324cd754d9ef70722c7551ce32b6819 Subproject commit 7ed9f1431a0a8262f988553e9927676cad54e470

2
vendor/nim-libp2p vendored

@ -1 +1 @@
Subproject commit 381630f1854818be634a98e92a65dc317bf780a0 Subproject commit 82af623641c6a01bcc5f0b46b351fb07b1f7d4dc