Skip to content

Commit

Permalink
806 AddunG BITE
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Feb 25, 2025
1 parent 3d2973d commit 59d57a3
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SkaleCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ enum port_type {
ZMQ_BROADCAST = 5,
MTA = 6,
STATUS = 10
#ifdef BITE
BITE = 11
#endif
};


Expand Down
58 changes: 58 additions & 0 deletions bite/server/BiteBlockFinalizeAndDecryptServer.cpp
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() {
}
45 changes: 45 additions & 0 deletions bite/server/BiteBlockFinalizeAndDecryptServer.h
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;

};

0 comments on commit 59d57a3

Please sign in to comment.