Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
34ba815f
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,发现更多精彩内容 >>
提交
34ba815f
编写于
3月 26, 2018
作者:
B
Brian Johnson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added tests for permission delay. GH# 1022
上级
aa1f6980
变更
3
展开全部
显示空白变更内容
内联
并排
Showing
3 changed file
with
684 addition
and
3 deletion
+684
-3
libraries/testing/include/eosio/testing/tester.hpp
libraries/testing/include/eosio/testing/tester.hpp
+2
-2
libraries/testing/tester.cpp
libraries/testing/tester.cpp
+4
-1
tests/chain_tests/delay_tests.cpp
tests/chain_tests/delay_tests.cpp
+678
-0
未找到文件。
libraries/testing/include/eosio/testing/tester.hpp
浏览文件 @
34ba815f
...
...
@@ -78,7 +78,7 @@ namespace eosio { namespace testing {
transaction_trace
push_transaction
(
signed_transaction
&
trx
,
uint32_t
skip_flag
=
skip_nothing
);
action_result
push_action
(
action
&&
cert_act
,
uint64_t
authorizer
);
transaction_trace
push_action
(
const
account_name
&
code
,
const
action_name
&
act
,
const
account_name
&
signer
,
const
variant_object
&
data
);
transaction_trace
push_action
(
const
account_name
&
code
,
const
action_name
&
act
,
const
account_name
&
signer
,
const
variant_object
&
data
,
int32_t
expiration
=
-
1
);
void
set_tapos
(
signed_transaction
&
trx
)
const
;
...
...
libraries/testing/tester.cpp
浏览文件 @
34ba815f
...
...
@@ -169,7 +169,8 @@ namespace eosio { namespace testing {
transaction_trace
base_tester
::
push_action
(
const
account_name
&
code
,
const
action_name
&
acttype
,
const
account_name
&
actor
,
const
variant_object
&
data
)
const
variant_object
&
data
,
int32_t
expiration
)
{
try
{
const
auto
&
acnt
=
control
->
get_database
().
get
<
account_object
,
by_name
>
(
code
);
...
...
@@ -188,6 +189,8 @@ namespace eosio { namespace testing {
act
.
data
=
abis
.
variant_to_binary
(
action_type_name
,
data
);
signed_transaction
trx
;
if
(
expiration
>
-
1
)
trx
.
expiration
=
time_point_sec
(
control
->
head_block_time
())
+
expiration
;
trx
.
actions
.
emplace_back
(
std
::
move
(
act
));
set_tapos
(
trx
);
trx
.
sign
(
get_private_key
(
actor
,
"active"
),
chain_id_type
());
...
...
tests/chain_tests/delay_tests.cpp
0 → 100644
浏览文件 @
34ba815f
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录