TARAXA
dag_config.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <json/json.h>
4 
5 #include "common/types.hpp"
6 
7 namespace taraxa {
8 
10  uint16_t shard = 1;
11 
12  bytes rlp() const;
13 };
14 Json::Value enc_json(const DagBlockProposerConfig& obj);
15 void dec_json(const Json::Value& json, DagBlockProposerConfig& obj);
16 
17 struct DagConfig {
18  uint64_t gas_limit = 0;
20 
21  bytes rlp() const;
22 };
23 Json::Value enc_json(const DagConfig& obj);
24 void dec_json(const Json::Value& json, DagConfig& obj);
25 
26 } // namespace taraxa
std::vector<::byte > bytes
Definition: Common.h:46
Definition: config.hpp:8
Json::Value enc_json(const DagBlockProposerConfig &obj)
Definition: dag_config.cpp:16
void dec_json(Json::Value const &json, DBConfig &db_config)
Definition: config.cpp:13
Definition: dag_config.hpp:9
uint16_t shard
Definition: dag_config.hpp:10
bytes rlp() const
Definition: dag_config.cpp:8
Definition: dag_config.hpp:17
bytes rlp() const
Definition: dag_config.cpp:23
DagBlockProposerConfig block_proposer
Definition: dag_config.hpp:19
uint64_t gas_limit
Definition: dag_config.hpp:18