mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 14:26:26 +00:00
nim-libp2p auto bump (#2647)
* auto-bump nim-libp2p * update peerhook for libp2p Co-authored-by: = <Menduist@users.noreply.github.com> Co-authored-by: Tanguy Cizain <tanguycizain@gmail.com>
This commit is contained in:
parent
38ce948647
commit
f68061b2d8
@ -1175,8 +1175,8 @@ proc new*(T: type Eth2Node, config: BeaconNodeConf,
|
||||
msg.protocolMounter node
|
||||
|
||||
|
||||
proc peerHook(peerId: PeerID, event: ConnEvent): Future[void] {.gcsafe.} =
|
||||
onConnEvent(node, peerId, event)
|
||||
proc peerHook(peerInfo: PeerInfo, event: ConnEvent): Future[void] {.gcsafe.} =
|
||||
onConnEvent(node, peerInfo.peerId, event)
|
||||
|
||||
try:
|
||||
switch.addConnEventHandler(peerHook, ConnEventKind.Connected)
|
||||
|
2
vendor/nim-libp2p
vendored
2
vendor/nim-libp2p
vendored
@ -1 +1 @@
|
||||
Subproject commit ac7f2033a0d5e51d5f5a70b5485de79f90c20b39
|
||||
Subproject commit cb94baf9c4081a78a889957c93baa16aff3511de
|
Loading…
x
Reference in New Issue
Block a user