mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-05-11 21:09:27 +00:00
update libp2p & related fixes
This commit is contained in:
parent
7eeb0f3d10
commit
19ea5fad91
@ -10,6 +10,7 @@ import
|
||||
libp2p/protocols/mix/mix_protocol,
|
||||
libp2p/protocols/mix/mix_metrics,
|
||||
libp2p/protocols/mix/delay_strategy,
|
||||
libp2p/protocols/mix/delay,
|
||||
libp2p/[multiaddress, peerid, switch],
|
||||
libp2p/extended_peer_record,
|
||||
eth/common/keys
|
||||
@ -101,8 +102,7 @@ proc new*(
|
||||
procCall MixProtocol(mix).init(
|
||||
localMixNodeInfo,
|
||||
switch,
|
||||
delayStrategy =
|
||||
ExponentialDelayStrategy.new(meanDelayMs = 50, rng = crypto.newRng()),
|
||||
delayStrategy = ExponentialDelayStrategy.new(rng = crypto.newRng()),
|
||||
)
|
||||
|
||||
return ok(mix)
|
||||
|
||||
@ -7,8 +7,7 @@ import
|
||||
chronicles,
|
||||
libp2p/protocols/rendezvous,
|
||||
libp2p/crypto/curve25519,
|
||||
libp2p/switch,
|
||||
libp2p/utils/semaphore
|
||||
libp2p/switch
|
||||
|
||||
import metrics except collect
|
||||
|
||||
|
||||
@ -8,7 +8,6 @@ import
|
||||
stew/byteutils,
|
||||
libp2p/protocols/rendezvous,
|
||||
libp2p/protocols/rendezvous/protobuf,
|
||||
libp2p/utils/semaphore,
|
||||
libp2p/utils/offsettedseq,
|
||||
libp2p/crypto/curve25519,
|
||||
libp2p/switch,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user