From 3abcbc848555e60f3e1a980ce69bf337133b0a15 Mon Sep 17 00:00:00 2001 From: arhag Date: Wed, 4 Apr 2018 10:48:41 -0400 Subject: [PATCH] fix resource_limits_test/elastic_cpu_relax_contract (spooky behavior) --- libraries/chain/include/eosio/chain/config.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/chain/include/eosio/chain/config.hpp b/libraries/chain/include/eosio/chain/config.hpp index 03fd983d6..74cf26faa 100644 --- a/libraries/chain/include/eosio/chain/config.hpp +++ b/libraries/chain/include/eosio/chain/config.hpp @@ -48,7 +48,7 @@ const static uint32_t default_max_block_net_usage = 1024 * 1024; /// a const static int default_target_block_net_usage_pct = 10 * percent_1; /// we target 1000 TPS const static uint32_t default_max_block_cpu_usage = 100 * 1024 * 1024; /// at 500ms blocks and 20000instr trx, this enables ~10,000 TPS burst -const static int default_target_block_cpu_usage_pct = 10 * percent_1; /// target 1000 TPS +const static uint32_t default_target_block_cpu_usage_pct = 10 * percent_1; /// target 1000 TPS const static uint64_t default_max_storage_size = 10 * 1024; const static uint32_t default_max_trx_lifetime = 60*60; @@ -110,6 +110,6 @@ constexpr uint64_t billable_size_v = ((billable_size::value + billable_alignm } } } // namespace eosio::chain::config template -Number EOS_PERCENT(Number value, int percentage) { +Number EOS_PERCENT(Number value, uint32_t percentage) { return value * percentage / eosio::chain::config::percent_100; } -- GitLab