-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
106 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -244,6 +244,9 @@ enum port_type { | |
ZMQ_BROADCAST = 5, | ||
MTA = 6, | ||
STATUS = 10 | ||
#ifdef BITE | ||
BITE = 11 | ||
#endif | ||
}; | ||
|
||
|
||
|
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,58 @@ | ||
/* | ||
Copyright (C) 2018- SKALE Labs | ||
This file is part of skale-consensus. | ||
skale-consensus is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as published | ||
by the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
skale-consensus 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 Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with skale-consensus. If not, see <https://www.gnu.org/licenses/>. | ||
@file TransportBiteBlockFinalizeAndDecryptServer.cpp | ||
@author Stan Kladko | ||
@date 2018- | ||
*/ | ||
|
||
|
||
#include "Log.h" | ||
#include "SkaleCommon.h" | ||
#include "chains/Schain.h" | ||
#include "exceptions/FatalError.h" | ||
#include "node/Node.h" | ||
#include "node/NodeInfo.h" | ||
#include <db/MsgDB.h> | ||
|
||
#include "unordered_set" | ||
|
||
|
||
#include "exceptions/ExitRequestedException.h" | ||
#include "exceptions/InvalidMessageFormatException.h" | ||
#include "protocols/blockconsensus/BlockConsensusAgent.h" | ||
|
||
#include "utils/Time.h" | ||
#include "threads/GlobalThreadRegistry.h" | ||
|
||
#include "BiteBlockFinalizeAndDecryptServer.h" | ||
|
||
void BiteBlockFinalizeAndDecryptServer::startThreads() { | ||
} | ||
|
||
|
||
|
||
BiteBlockFinalizeAndDecryptServer::BiteBlockFinalizeAndDecryptServer( Schain& _sChain ) | ||
: Agent( _sChain, true ) { | ||
|
||
auto cfg = _sChain.getNode()->getCfg(); | ||
|
||
} | ||
|
||
BiteBlockFinalizeAndDecryptServer::~BiteBlockFinalizeAndDecryptServer() { | ||
} |
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,45 @@ | ||
/* | ||
Copyright (C) 2018-2019 SKALE Labs | ||
This file is part of skale-consensus. | ||
skale-consensus is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as published | ||
by the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
skale-consensus 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 Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with skale-consensus. If not, see <https://www.gnu.org/licenses/>. | ||
@file TransportNetwork.h | ||
@author Stan Kladko | ||
@date 2018 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "Agent.h" | ||
|
||
class Schain; | ||
class Node; | ||
|
||
enum TransportType { ZMQ }; | ||
|
||
class BiteBlockFinalizeAndDecryptServer : public Agent { | ||
protected: | ||
|
||
|
||
explicit BiteBlockFinalizeAndDecryptServer( Schain& _sChain ); | ||
|
||
|
||
public: | ||
void startThreads(); | ||
|
||
~BiteBlockFinalizeAndDecryptServer() override; | ||
|
||
}; |