提交 f1091319 编写于 作者: B Bart Wyatt

re-type the pct variables

上级 af9a6d0b
......@@ -98,9 +98,9 @@
{"name":"max_transaction_cpu_usage", "type":"uint32"},
{"name":"max_transaction_net_usage", "type":"uint32"},
{"name":"max_block_cpu_usage", "type": "uint64"},
{"name":"target_block_cpu_usage_pct", "type": "int32"},
{"name":"target_block_cpu_usage_pct", "type": "uint32"},
{"name":"max_block_net_usage", "type": "uint64"},
{"name":"target_block_net_usage_pct", "type": "int32"},
{"name":"target_block_net_usage_pct", "type": "uint32"},
{"name":"max_transaction_lifetime", "type":"uint32"},
{"name":"max_transaction_exec_time", "type":"uint32"},
{"name":"max_authority_depth", "type":"uint16"},
......
......@@ -253,9 +253,9 @@ namespace eosiosystem {
std::array<uint32_t, 21> max_transaction_cpu_usage;
std::array<uint32_t, 21> max_transaction_net_usage;
std::array<uint64_t, 21> max_block_cpu_usage;
std::array<int , 21> target_block_cpu_usage_pct;
std::array<uint32_t, 21> target_block_cpu_usage_pct;
std::array<uint64_t, 21> max_block_net_usage;
std::array<int , 21> target_block_net_usage_pct;
std::array<uint32_t, 21> target_block_net_usage_pct;
std::array<uint32_t, 21> max_transaction_lifetime;
std::array<uint16_t, 21> max_authority_depth;
std::array<uint32_t, 21> max_transaction_exec_time;
......
......@@ -17,9 +17,9 @@ namespace eosio {
uint32_t max_transaction_cpu_usage;
uint32_t max_transaction_net_usage;
uint64_t max_block_cpu_usage;
int target_block_cpu_usage_pct;
uint32_t target_block_cpu_usage_pct;
uint64_t max_block_net_usage;
int target_block_net_usage_pct;
uint32_t target_block_net_usage_pct;
uint32_t max_transaction_lifetime;
uint32_t max_transaction_exec_time;
uint16_t max_authority_depth;
......
......@@ -32,9 +32,9 @@ struct chain_config {
uint32_t max_transaction_net_usage; ///< the maximum objectively measured net usage that the chain will allow regardless of account limits
uint64_t max_block_cpu_usage; ///< the maxiumum cpu usage in instructions for a block
int target_block_cpu_usage_pct; ///< the target percent (1% == 100, 100%= 10,000) of maximum cpu usage; exceeding this triggers congestion handling
uint32_t target_block_cpu_usage_pct; ///< the target percent (1% == 100, 100%= 10,000) of maximum cpu usage; exceeding this triggers congestion handling
uint64_t max_block_net_usage; ///< the maxiumum net usage in instructions for a block
int target_block_net_usage_pct; ///< the target percent (1% == 100, 100%= 10,000) of maximum net usage; exceeding this triggers congestion handling
uint32_t target_block_net_usage_pct; ///< the target percent (1% == 100, 100%= 10,000) of maximum net usage; exceeding this triggers congestion handling
uint32_t max_transaction_lifetime;
uint32_t max_transaction_exec_time;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册