7 #include <boost/asio.hpp>
28 namespace pillar_chain {
29 class PillarChainManager;
33 class DagBlockProposer;
37 class TransactionManager;
43 class FullNode :
public std::enable_shared_from_this<FullNode> {
96 std::shared_ptr<DbStorage>
db_;
Definition: ModularServer.h:61
Secret const & secret() const
Definition: Common.h:167
Address const & address() const
Retrieve the associated address of the public key.
Definition: Common.h:173
void setupMetricsUpdaters()
Method that is used to register metrics updaters. So we don't need to pass metrics classes instances ...
Definition: node.cpp:144
void start()
Definition: node.cpp:169
FullNode & operator=(FullNode &&)=delete
~FullNode()
Definition: node.cpp:39
void init()
Definition: node.cpp:41
auto const & getSecretKey() const
Definition: node.hpp:69
auto const & getConfig() const
Definition: node.hpp:55
auto const & getPbftChain() const
Definition: node.hpp:62
FullNode(FullNode &&)=delete
std::shared_ptr< net::WsServer > graphql_ws_
Definition: node.hpp:112
void close()
Definition: node.cpp:360
FullNode(const FullNode &)=delete
LOG_OBJECTS_DEFINE std::atomic_bool started_
Definition: node.hpp:119
bool isStarted() const
Definition: node.hpp:54
std::shared_ptr< DbStorage > db_
Definition: node.hpp:96
auto const & getVoteManager() const
Definition: node.hpp:61
auto const & getFinalChain() const
Definition: node.hpp:63
std::atomic< bool > stopped_
Definition: node.hpp:89
auto const & getNetwork() const
Definition: node.hpp:56
std::shared_ptr< net::HttpServer > jsonrpc_http_
Definition: node.hpp:109
std::unique_ptr< metrics::MetricsService > metrics_
Definition: node.hpp:114
auto const & getDagManager() const
Definition: node.hpp:58
auto const & getPbftManager() const
Definition: node.hpp:60
std::shared_ptr< net::WsServer > jsonrpc_ws_
Definition: node.hpp:111
FullNode(FullNodeConfig const &conf)
Definition: node.cpp:37
std::shared_ptr< Network > network_
Definition: node.hpp:101
auto const & getVrfSecretKey() const
Definition: node.hpp:70
void rebuildDb()
Definition: node.cpp:374
std::shared_ptr< final_chain::FinalChain > final_chain_
Definition: node.hpp:108
std::shared_ptr< PbftManager > pbft_mgr_
Definition: node.hpp:104
std::shared_ptr< GasPricer > gas_pricer_
Definition: node.hpp:98
auto const & getAddress() const
Definition: node.hpp:68
std::unique_ptr< util::ThreadPool > rpc_thread_pool_
Definition: node.hpp:83
std::shared_ptr< KeyManager > key_manager_
Definition: node.hpp:107
std::shared_ptr< PbftChain > pbft_chain_
Definition: node.hpp:105
std::shared_ptr< VoteManager > vote_mgr_
Definition: node.hpp:103
std::shared_ptr< DbStorage > old_db_
Definition: node.hpp:97
util::ThreadPool subscription_pool_
Definition: node.hpp:87
FullNode & operator=(const FullNode &)=delete
std::unique_ptr< util::ThreadPool > graphql_thread_pool_
Definition: node.hpp:84
auto const & getGasPricer() const
Definition: node.hpp:66
std::unique_ptr< JsonRpcServer > jsonrpc_api_
Definition: node.hpp:113
std::shared_ptr< pillar_chain::PillarChainManager > getPillarChainManager() const
Definition: node.hpp:72
FullNodeConfig conf_
Definition: node.hpp:91
auto & getDagBlockProposer()
Definition: node.hpp:65
dev::KeyPair kp_
Definition: node.hpp:93
uint64_t getProposedBlocksCount() const
Definition: node.cpp:443
std::shared_ptr< DagBlockProposer > dag_block_proposer_
Definition: node.hpp:102
auto const & getDB() const
Definition: node.hpp:59
std::shared_ptr< TransactionManager > trx_mgr_
Definition: node.hpp:100
std::shared_ptr< net::HttpServer > graphql_http_
Definition: node.hpp:110
std::shared_ptr< DagManager > dag_mgr_
Definition: node.hpp:99
std::shared_ptr< pillar_chain::PillarChainManager > pillar_chain_mgr_
Definition: node.hpp:106
auto const & getTransactionManager() const
Definition: node.hpp:57
class for metrics collecting. Registering specific metrics classes and creating prometheus server(exp...
Definition: metrics_service.hpp:16
Definition: thread_pool.hpp:9
#define LOG_OBJECTS_DEFINE
Definition: logger.hpp:60
Definition: config.hpp:24
vrf_wrapper::vrf_sk_t vrf_secret
Definition: config.hpp:45