-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start of libp2p intergration in catalyst * Refactor LibP2P use interfaces and more DI * Update PoaNode and Tests * Update ip/port to use multiaddress in more places * Update unit tests * Update more unit tests * Add multi address in cli * Update proto submodule * Update PoaConsensus intergration * Update POA Concensus * Update get peers by repo * Rename PeerId to Address, Add more PeerRepo signatures, Find POA nodes using PublicKey instead of PeerId * Get POA nodes by PublicKey * Use string instead of bytearray for publicKey * Create custom libp2p protocol * Backup before updating protobuf ver * Use catalyst-protocol libp2p in peer client for testing * Update minimum peers * Use multi-address instead of peerid libp2p * Add try catch to peer client * Use peer client broadcast method * Remove Dto * Revert "Remove Dto" This reverts commit f723bbe. * Remove Dto * Fix sync tests * Update sync * Add cancellation tokens and better async * Fix POA peer repository get peer by public key * Blacklist peers that cannot be connected to but remove the black list entry if they connect into you * Update Catalyst LibP2P protocol intergration tests * Add handlers to libp2p networking * Add handlers to broadcast * Update peer client * Fix bug with sending signed message * Update POA nodes config * Remove RPC Server and Client from Project, as EthController has been discussed as a replacement * Comment out test to test pipeline * Add trait to CatalystProtocol intergration tests * Update protocol and refactor * Comment out unit tests * Add rpc projects back to sln * Peer info request * Update rpc unit tests * Comment out unit test for verify rpc * Comment out unit test for sign rpc * Remove channel handler in rpc * Update ports for Catalyst libp2p protocol * Uncomment some todo tests and update PeerId handler to use MultiAddress * Fix FavouriteByHashAndVoterComparerTests * Variable name refactor * Remove inmemory sharp repo from Catalyst.Abstraction packages * Update protocol submodule * Revert ignore attribute on IntergrationTest for 1241 * Remove unused DI from PeerService * Refactor catalyst node * Use peer client instead of broadcast manager on TransactionReceivedEvent * Remove submodule ffi * Uncomment depricated tests * Refactor some codacy issues * Refactor for codacy * Refactor more issues for codacy * Refactor for codacy * Refactor for codacy * Update for some autofac issues
- Loading branch information
Alex
authored
Jun 16, 2020
1 parent
db61ef2
commit fe7bfdd
Showing
406 changed files
with
4,137 additions
and
2,691 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/Catalyst.Abstractions/IO/Handlers/IInboundMessageHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#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 | ||
|
||
using Catalyst.Protocol.Wire; | ||
using System.Threading.Tasks; | ||
|
||
namespace Catalyst.Abstractions.IO.Handlers | ||
{ | ||
public interface IMessageHandler | ||
{ | ||
Task<bool> ProcessAsync(ProtocolMessage message); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/Catalyst.Abstractions/IO/Handlers/IOutboundMessageHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.