Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
ab867cb4
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,发现更多精彩内容 >>
未验证
提交
ab867cb4
编写于
4月 24, 2018
作者:
K
Kevin Heifner
提交者:
GitHub
4月 24, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2580 from EOSIO/fixes
Fixed build issues
上级
d4a4eedc
5caf05f8
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
12 deletion
+12
-12
tests/chain_tests/delay_tests.cpp
tests/chain_tests/delay_tests.cpp
+12
-12
未找到文件。
tests/chain_tests/delay_tests.cpp
浏览文件 @
ab867cb4
...
...
@@ -2089,23 +2089,23 @@ BOOST_AUTO_TEST_CASE( max_transaction_delay_execute ) { try {
chain
.
set_code
(
config
::
system_account_name
,
eosio_system_wast
);
chain
.
set_abi
(
config
::
system_account_name
,
eosio_system_abi
);
chain
.
create_account
(
N
(
currency
));
chain
.
set_code
(
N
(
currency
),
currency
_wast
);
chain
.
set_abi
(
N
(
currency
),
currency
_abi
);
chain
.
create_account
(
N
(
eosio
.
token
));
chain
.
set_code
(
N
(
eosio
.
token
),
eosio_token
_wast
);
chain
.
set_abi
(
N
(
eosio
.
token
),
eosio_token
_abi
);
chain
.
produce_blocks
();
chain
.
create_account
(
N
(
tester
));
chain
.
produce_blocks
(
10
);
chain
.
produce_blocks
();
chain
.
push_action
(
N
(
currency
),
N
(
create
),
N
(
currency
),
mutable_variant_object
()
(
"issuer"
,
"
currency
"
)
chain
.
push_action
(
N
(
eosio
.
token
),
N
(
create
),
N
(
eosio
.
token
),
mutable_variant_object
()
(
"issuer"
,
"
eosio.token
"
)
(
"maximum_supply"
,
"9000000.0000 CUR"
)
(
"can_freeze"
,
0
)
(
"can_recall"
,
0
)
(
"can_whitelist"
,
0
)
);
chain
.
push_action
(
N
(
currency
),
name
(
"issue"
),
N
(
currency
),
fc
::
mutable_variant_object
()
chain
.
push_action
(
N
(
eosio
.
token
),
name
(
"issue"
),
N
(
eosio
.
token
),
fc
::
mutable_variant_object
()
(
"to"
,
"tester"
)
(
"quantity"
,
"100.0000 CUR"
)
(
"memo"
,
"for stuff"
)
...
...
@@ -2123,7 +2123,7 @@ BOOST_AUTO_TEST_CASE( max_transaction_delay_execute ) { try {
chain
.
push_action
(
config
::
system_account_name
,
contracts
::
linkauth
::
get_name
(),
tester_account
,
fc
::
mutable_variant_object
()
(
"account"
,
"tester"
)
(
"code"
,
"
currency
"
)
(
"code"
,
"
eosio.token
"
)
(
"type"
,
"transfer"
)
(
"requirement"
,
"first"
));
...
...
@@ -2134,9 +2134,9 @@ BOOST_AUTO_TEST_CASE( max_transaction_delay_execute ) { try {
});
//should be able to create transaction with delay 60 sec, despite permission delay being 30 days, because max_transaction_delay is 60 sec
trace
=
chain
.
push_action
(
N
(
currency
),
name
(
"transfer"
),
N
(
tester
),
fc
::
mutable_variant_object
()
trace
=
chain
.
push_action
(
N
(
eosio
.
token
),
name
(
"transfer"
),
N
(
tester
),
fc
::
mutable_variant_object
()
(
"from"
,
"tester"
)
(
"to"
,
"
currency
"
)
(
"to"
,
"
eosio.token
"
)
(
"quantity"
,
"9.0000 CUR"
)
(
"memo"
,
""
),
120
,
60
...
...
@@ -2146,9 +2146,9 @@ BOOST_AUTO_TEST_CASE( max_transaction_delay_execute ) { try {
//check that the delayed transaction executed after after 60 sec
chain
.
produce_block
(
fc
::
seconds
(
60
)
);
auto
traces
=
chain
.
control
->
push_deferred_transactions
(
true
);
BOOST_
CHECK
_EQUAL
(
1
,
traces
.
size
()
);
BOOST_
CHECK_EQUAL
(
1
,
traces
.
at
(
0
).
action_traces
.
size
()
);
BOOST_
CHECK
_EQUAL
(
transaction_receipt
::
executed
,
traces
.
at
(
0
).
status
);
BOOST_
REQUIRE
_EQUAL
(
1
,
traces
.
size
()
);
BOOST_
REQUIRE
(
1
<=
traces
.
at
(
0
).
action_traces
.
size
()
);
BOOST_
REQUIRE
_EQUAL
(
transaction_receipt
::
executed
,
traces
.
at
(
0
).
status
);
//check that the transfer really happened
auto
liquid_balance
=
get_currency_balance
(
chain
,
N
(
tester
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录