Skip to content

Commit

Permalink
Uncomment some todo tests and update PeerId handler to use MultiAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
Xela committed Jun 3, 2020
1 parent bcfd8fe commit 0c32838
Show file tree
Hide file tree
Showing 16 changed files with 371 additions and 399 deletions.
27 changes: 27 additions & 0 deletions src/Catalyst.Abstractions/IO/Handlers/IInboundMessageHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#region LICENSE

/**
* Copyright (c) 2019 Catalyst Network
*
* This file is part of Catalyst.Node <https://github.com/catalyst-network/Catalyst.Node>
*
* Catalyst.Node is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Catalyst.Node is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Catalyst.Node. If not, see <https://www.gnu.org/licenses/>.
*/

#endregion

namespace Catalyst.Abstractions.IO.Handlers
{
public interface IInboundMessageHandler : IMessageHandler { }
}
27 changes: 27 additions & 0 deletions src/Catalyst.Abstractions/IO/Handlers/IOutboundMessageHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#region LICENSE

/**
* Copyright (c) 2019 Catalyst Network
*
* This file is part of Catalyst.Node <https://github.com/catalyst-network/Catalyst.Node>
*
* Catalyst.Node is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Catalyst.Node is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Catalyst.Node. If not, see <https://www.gnu.org/licenses/>.
*/

#endregion

namespace Catalyst.Abstractions.IO.Handlers
{
public interface IOutboundMessageHandler : IMessageHandler { }
}
14 changes: 1 addition & 13 deletions src/Catalyst.Abstractions/Options/DfsOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,25 +81,13 @@ public DfsOptions(BlockOptions blockOptions,
Swarm = swarmOptions;
Dns = dnsClient;

// Do not use the public IPFS network, use a private network of catalyst only nodes.
var swarmKey = "07a8e9d0c43400927ab274b7fa443596b71e609bacae47bd958e5cd9f59d6ca3";

// Do not use the public IPFS network, use a private network
// of catalyst only nodes.
Swarm.PrivateNetworkKey = new PreSharedKey
{
Value = swarmKey.ToHexBuffer()
};

var seedServers = new[]
{
new MultiAddress(
"/ip4/46.101.132.61/tcp/4001/ipfs/18n3naE9kBZoVvgYMV6saMZdtAkDHgs8MDwwhtyLu8JpYitY4Nk8jmyGgQ4Gt3VKNson"),
new MultiAddress(
"/ip4/188.166.13.135/tcp/4001/ipfs/18n3naE9kBZoVvgYMV6saMZe2AAPTCoujCxhJHECaySDEsPrEz9W2u7uo6hAbJhYzhPg"),
new MultiAddress(
"/ip4/167.172.73.132/tcp/4001/ipfs/18n3naE9kBZoVvgYMV6saMZe1E9wXdykR6h3Q9EaQcQc6hdNAXyCTEzoGfcA2wQgCRyg")
};

if (Swarm.PrivateNetworkKey == null)
{
var path = Path.Combine(Repository.Folder, "swarm.key");
Expand Down
Loading

0 comments on commit 0c32838

Please sign in to comment.