Skip to content

Commit

Permalink
update p2p version
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchhill committed Oct 3, 2024
1 parent 9775ae7 commit 40bd49e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Nethermind/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
<PackageVersion Include="Nethermind.DotNetty.Handlers" Version="1.0.1" />
<PackageVersion Include="Nethermind.DotNetty.Transport" Version="1.0.1" />
<PackageVersion Include="Nethermind.Gmp" Version="1.0.1" />
<PackageVersion Include="Nethermind.Libp2p" Version="1.0.3" />
<PackageVersion Include="Nethermind.Libp2p.Protocols.PubsubDiscovery" Version="1.0.3" />
<PackageVersion Include="Nethermind.Libp2p" Version="1.0.4" />
<PackageVersion Include="Nethermind.Libp2p.Protocols.PubsubPeerDiscovery" Version="1.0.4" />
<PackageVersion Include="Nethermind.Numerics.Int256" Version="1.2.0" />
<PackageVersion Include="Nito.Collections.Deque" Version="1.2.1" />
<PackageVersion Include="NLog" Version="5.3.2" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<ItemGroup>
<PackageReference Include="Nethermind.Libp2p" />
<PackageReference Include="Nethermind.Libp2p.Protocols.PubsubDiscovery" />
<PackageReference Include="Nethermind.Libp2p.Protocols.PubsubPeerDiscovery" />
<PackageReference Include="Google.Protobuf" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/Nethermind/Nethermind.Shutter/ShutterP2P.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ShutterP2P : IShutterP2P
private readonly IShutterConfig _cfg;
private readonly Channel<byte[]> _msgQueue = Channel.CreateBounded<byte[]>(1000);
private readonly PubsubRouter _router;
private readonly PubSubDiscoveryProtocol _disc;
private readonly PubsubPeerDiscoveryProtocol _disc;
private readonly PeerStore _peerStore;
private readonly ILocalPeer _peer;
private readonly ServiceProvider _serviceProvider;
Expand Down Expand Up @@ -72,7 +72,7 @@ public ShutterP2P(IShutterConfig shutterConfig, ILogManager logManager)
IPeerFactory peerFactory = _serviceProvider!.GetService<IPeerFactory>()!;
_peer = peerFactory.Create(new Identity(), "/ip4/0.0.0.0/tcp/" + _cfg.P2PPort);
_router = _serviceProvider!.GetService<PubsubRouter>()!;
_disc = new(_router, _peerStore = _serviceProvider.GetService<PeerStore>()!, new PubSubDiscoverySettings() { Interval = 300 }, _peer);
_disc = new(_router, _peerStore = _serviceProvider.GetService<PeerStore>()!, new PubsubPeerDiscoverySettings() { Interval = 300 }, _peer);
ITopic topic = _router.GetTopic("decryptionKeys");

topic.OnMessage += (byte[] msg) =>
Expand Down

0 comments on commit 40bd49e

Please sign in to comment.