Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
f2078f72
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f2078f72
编写于
5月 23, 2018
作者:
A
arhag
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove max_generated_transaction_count #3343
上级
a55c134e
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
13 addition
and
25 deletion
+13
-25
contracts/eosio.system/eosio.system.abi
contracts/eosio.system/eosio.system.abi
+1
-2
contracts/eosiolib/privileged.hpp
contracts/eosiolib/privileged.hpp
+1
-3
libraries/chain/include/eosio/chain/chain_config.hpp
libraries/chain/include/eosio/chain/chain_config.hpp
+2
-5
libraries/chain/include/eosio/chain/config.hpp
libraries/chain/include/eosio/chain/config.hpp
+0
-1
libraries/chain/include/eosio/chain/genesis_state.hpp
libraries/chain/include/eosio/chain/genesis_state.hpp
+0
-1
programs/bios-boot-tutorial/genesis.json
programs/bios-boot-tutorial/genesis.json
+2
-3
programs/cleos/main.cpp
programs/cleos/main.cpp
+1
-2
unittests/eosio.system_tests.cpp
unittests/eosio.system_tests.cpp
+5
-6
unittests/eosio_system_tester.hpp
unittests/eosio_system_tester.hpp
+1
-2
未找到文件。
contracts/eosio.system/eosio.system.abi
浏览文件 @
f2078f72
...
...
@@ -239,8 +239,7 @@
{"name":"max_transaction_delay", "type":"uint32"},
{"name":"max_inline_action_size", "type":"uint32"},
{"name":"max_inline_action_depth", "type":"uint16"},
{"name":"max_authority_depth", "type":"uint16"},
{"name":"max_generated_transaction_count", "type":"uint32"}
{"name":"max_authority_depth", "type":"uint16"}
]
},{
...
...
contracts/eosiolib/privileged.hpp
浏览文件 @
f2078f72
...
...
@@ -25,7 +25,6 @@ namespace eosio {
uint32_t
max_inline_action_size
;
uint16_t
max_inline_action_depth
;
uint16_t
max_authority_depth
;
uint32_t
max_generated_transaction_count
;
EOSLIB_SERIALIZE
(
blockchain_parameters
,
(
max_block_net_usage
)(
target_block_net_usage_pct
)
...
...
@@ -36,8 +35,7 @@ namespace eosio {
(
max_transaction_cpu_usage
)(
min_transaction_cpu_usage
)
(
max_transaction_lifetime
)(
deferred_trx_expiration_window
)(
max_transaction_delay
)
(
max_inline_action_size
)(
max_inline_action_depth
)
(
max_authority_depth
)(
max_generated_transaction_count
)
(
max_inline_action_size
)(
max_inline_action_depth
)(
max_authority_depth
)
)
};
...
...
libraries/chain/include/eosio/chain/chain_config.hpp
浏览文件 @
f2078f72
...
...
@@ -36,7 +36,6 @@ struct chain_config {
uint32_t
max_inline_action_size
;
///< maximum allowed size (in bytes) of an inline action
uint16_t
max_inline_action_depth
;
///< recursion depth limit on sending inline actions
uint16_t
max_authority_depth
;
///< recursion depth limit for checking if an authority is satisfied
uint32_t
max_generated_transaction_count
;
///< the number of generated transactions per action (TODO: implement?)
void
validate
()
const
;
...
...
@@ -59,8 +58,7 @@ struct chain_config {
<<
"Max Transaction Delay: "
<<
c
.
max_transaction_delay
<<
", "
<<
"Max Inline Action Size: "
<<
c
.
max_inline_action_size
<<
", "
<<
"Max Inline Action Depth: "
<<
c
.
max_inline_action_depth
<<
", "
<<
"Max Authority Depth: "
<<
c
.
max_authority_depth
<<
", "
<<
"Max Generated Transaction Count: "
<<
c
.
max_generated_transaction_count
<<
"
\n
"
;
<<
"Max Authority Depth: "
<<
c
.
max_authority_depth
<<
"
\n
"
;
}
};
...
...
@@ -78,7 +76,6 @@ FC_REFLECT(eosio::chain::chain_config,
(
max_transaction_cpu_usage
)(
min_transaction_cpu_usage
)
(
max_transaction_lifetime
)(
deferred_trx_expiration_window
)(
max_transaction_delay
)
(
max_inline_action_size
)(
max_inline_action_depth
)
(
max_authority_depth
)(
max_generated_transaction_count
)
(
max_inline_action_size
)(
max_inline_action_depth
)(
max_authority_depth
)
)
libraries/chain/include/eosio/chain/config.hpp
浏览文件 @
f2078f72
...
...
@@ -79,7 +79,6 @@ const static uint32_t default_max_trx_delay = 45*24*3600; //
const
static
uint32_t
default_max_inline_action_size
=
4
*
1024
;
// 4 KB
const
static
uint16_t
default_max_inline_action_depth
=
4
;
const
static
uint16_t
default_max_auth_depth
=
6
;
const
static
uint32_t
default_max_gen_trx_count
=
16
;
const
static
uint32_t
min_net_usage_delta_between_base_and_max_for_trx
=
10
*
1024
;
// Should be large enough to allow recovery from badly set blockchain parameters without a hard fork
...
...
libraries/chain/include/eosio/chain/genesis_state.hpp
浏览文件 @
f2078f72
...
...
@@ -36,7 +36,6 @@ struct genesis_state {
.
max_inline_action_size
=
config
::
default_max_inline_action_size
,
.
max_inline_action_depth
=
config
::
default_max_inline_action_depth
,
.
max_authority_depth
=
config
::
default_max_auth_depth
,
.
max_generated_transaction_count
=
config
::
default_max_gen_trx_count
,
};
time_point
initial_timestamp
=
fc
::
time_point
::
from_iso_string
(
"2018-03-02T12:00:00"
);
...
...
programs/bios-boot-tutorial/genesis.json
浏览文件 @
f2078f72
...
...
@@ -18,8 +18,7 @@
"max_transaction_delay"
:
3888000
,
"max_inline_action_size"
:
4096
,
"max_inline_action_depth"
:
4
,
"max_authority_depth"
:
6
,
"max_generated_transaction_count"
:
16
"max_authority_depth"
:
6
},
"initial_chain_id"
:
"0000000000000000000000000000000000000000000000000000000000000000"
}
programs/cleos/main.cpp
浏览文件 @
f2078f72
...
...
@@ -480,7 +480,6 @@ fc::variant regproducer_variant(const account_name& producer,
("max_inline_action_size", config::default_max_inline_action_size)
("max_inline_depth", config::default_max_inline_action_depth)
("max_authority_depth", config::default_max_auth_depth)
("max_generated_transaction_count", config::default_max_gen_trx_count)
("max_storage_size", max_storage_size)
("percent_of_max_inflation_rate", percent_of_max_inflation_rate)
("storage_reserve_ratio", storage_reserve_ratio);
...
...
unittests/eosio.system_tests.cpp
浏览文件 @
f2078f72
...
...
@@ -2155,8 +2155,7 @@ fc::mutable_variant_object config_to_variant( const eosio::chain::chain_config&
(
"max_transaction_delay"
,
config
.
max_transaction_delay
)
(
"max_inline_action_size"
,
config
.
max_inline_action_size
)
(
"max_inline_action_depth"
,
config
.
max_inline_action_depth
)
(
"max_authority_depth"
,
config
.
max_authority_depth
)
(
"max_generated_transaction_count"
,
config
.
max_generated_transaction_count
);
(
"max_authority_depth"
,
config
.
max_authority_depth
);
}
BOOST_FIXTURE_TEST_CASE
(
elect_producers
/*_and_parameters*/
,
eosio_system_tester
)
try
{
...
...
unittests/eosio_system_tester.hpp
浏览文件 @
f2078f72
...
...
@@ -302,7 +302,6 @@ public:
(
"max_inline_action_size"
,
4096
+
n
)
(
"max_inline_action_depth"
,
4
+
n
)
(
"max_authority_depth"
,
6
+
n
)
(
"max_generated_transaction_count"
,
10
+
n
)
(
"max_ram_size"
,
(
n
%
10
+
1
)
*
1024
*
1024
)
(
"ram_reserve_ratio"
,
100
+
n
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录