Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
7a4c6180
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,发现更多精彩内容 >>
提交
7a4c6180
编写于
5月 16, 2018
作者:
M
Matias Romeo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix missing tests
上级
44db5a1b
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
39 addition
and
83 deletion
+39
-83
contracts/eosio.system/producer_pay.cpp
contracts/eosio.system/producer_pay.cpp
+0
-44
tests/nodeos_run_test.py
tests/nodeos_run_test.py
+5
-5
tests/p2p_stress.py
tests/p2p_stress.py
+1
-1
tests/testUtils.py
tests/testUtils.py
+8
-8
unittests/eosio.system_tests.cpp
unittests/eosio.system_tests.cpp
+6
-6
unittests/multisig_tests.cpp
unittests/multisig_tests.cpp
+19
-19
未找到文件。
contracts/eosio.system/producer_pay.cpp
浏览文件 @
7a4c6180
...
...
@@ -47,50 +47,6 @@ namespace eosiosystem {
if
(
timestamp
.
slot
-
_gstate
.
last_producer_schedule_update
.
slot
>
120
)
{
update_elected_producers
(
timestamp
);
}
}
eosio
::
asset
system_contract
::
payment_per_vote
(
const
account_name
&
owner
,
double
owners_votes
,
const
eosio
::
asset
&
pervote_bucket
)
{
eosio
::
asset
payment
(
0
,
S
(
4
,
SYS
));
const
int64_t
min_daily_amount
=
100
*
10000
;
if
(
pervote_bucket
.
amount
<
min_daily_amount
)
{
return
payment
;
}
auto
idx
=
_producers
.
template
get_index
<
N
(
prototalvote
)>();
double
total_producer_votes
=
0
;
double
running_payment_amount
=
0
;
bool
to_be_payed
=
false
;
for
(
auto
itr
=
idx
.
cbegin
();
itr
!=
idx
.
cend
();
++
itr
)
{
if
(
!
(
itr
->
total_votes
>
0
)
)
{
break
;
}
if
(
!
itr
->
active
()
)
{
continue
;
}
if
(
itr
->
owner
==
owner
)
{
to_be_payed
=
true
;
}
total_producer_votes
+=
itr
->
total_votes
;
running_payment_amount
=
(
itr
->
total_votes
)
*
double
(
pervote_bucket
.
amount
)
/
total_producer_votes
;
if
(
running_payment_amount
<
min_daily_amount
)
{
if
(
itr
->
owner
==
owner
)
{
to_be_payed
=
false
;
}
total_producer_votes
-=
itr
->
total_votes
;
break
;
}
}
if
(
to_be_payed
)
{
payment
.
amount
=
static_cast
<
int64_t
>
(
(
double
(
pervote_bucket
.
amount
)
*
owners_votes
)
/
total_producer_votes
);
}
return
payment
;
}
using
namespace
eosio
;
...
...
tests/nodeos_run_test.py
浏览文件 @
7a4c6180
...
...
@@ -255,7 +255,7 @@ try:
if
not
node
.
verifyAccount
(
testeraAccount
):
errorExit
(
"FAILURE - account creation failed."
,
raw
=
True
)
transferAmount
=
"97.5321
EO
S"
transferAmount
=
"97.5321
SY
S"
Print
(
"Transfer funds %s from account %s to %s"
%
(
transferAmount
,
defproduceraAccount
.
name
,
testeraAccount
.
name
))
if
node
.
transferFunds
(
defproduceraAccount
,
testeraAccount
,
transferAmount
,
"test transfer"
)
is
None
:
cmdError
(
"%s transfer"
%
(
ClientName
))
...
...
@@ -269,7 +269,7 @@ try:
cmdError
(
"FAILURE - transfer failed"
)
errorExit
(
"Transfer verification failed. Excepted %s, actual: %s"
%
(
expectedAmount
,
actualAmount
))
transferAmount
=
"0.0100
EO
S"
transferAmount
=
"0.0100
SY
S"
Print
(
"Force transfer funds %s from account %s to %s"
%
(
transferAmount
,
defproduceraAccount
.
name
,
testeraAccount
.
name
))
if
node
.
transferFunds
(
defproduceraAccount
,
testeraAccount
,
transferAmount
,
"test transfer"
,
force
=
True
)
is
None
:
...
...
@@ -277,7 +277,7 @@ try:
errorExit
(
"Failed to force transfer funds %d from account %s to %s"
%
(
transferAmount
,
defproduceraAccount
.
name
,
testeraAccount
.
name
))
expectedAmount
=
"97.5421
EO
S"
expectedAmount
=
"97.5421
SY
S"
Print
(
"Verify transfer, Expected: %s"
%
(
expectedAmount
))
actualAmount
=
node
.
getAccountEosBalanceStr
(
testeraAccount
.
name
)
if
expectedAmount
!=
actualAmount
:
...
...
@@ -298,7 +298,7 @@ try:
cmdError
(
"%s wallet unlock"
%
(
ClientName
))
errorExit
(
"Failed to unlock wallet %s"
%
(
testWallet
.
name
))
transferAmount
=
"97.5311
EO
S"
transferAmount
=
"97.5311
SY
S"
Print
(
"Transfer funds %s from account %s to %s"
%
(
transferAmount
,
testeraAccount
.
name
,
currencyAccount
.
name
))
trans
=
node
.
transferFunds
(
testeraAccount
,
currencyAccount
,
transferAmount
,
"test transfer a->b"
)
...
...
@@ -308,7 +308,7 @@ try:
transferAmount
,
testeraAccount
.
name
,
currencyAccount
.
name
))
transId
=
testUtils
.
Node
.
getTransId
(
trans
)
expectedAmount
=
"98.0311
EO
S"
# 5000 initial deposit
expectedAmount
=
"98.0311
SY
S"
# 5000 initial deposit
Print
(
"Verify transfer, Expected: %s"
%
(
expectedAmount
))
actualAmount
=
node
.
getAccountEosBalanceStr
(
currencyAccount
.
name
)
if
expectedAmount
!=
actualAmount
:
...
...
tests/p2p_stress.py
浏览文件 @
7a4c6180
...
...
@@ -50,7 +50,7 @@ class StressNetwork:
print
(
"issue currency0000 into %s"
%
(
acc1
.
name
))
contract
=
"eosio"
action
=
"issue"
data
=
"{
\"
to
\"
:
\"
"
+
acc1
.
name
+
"
\"
,
\"
quantity
\"
:
\"
1000000.0000
EO
S
\"
}"
data
=
"{
\"
to
\"
:
\"
"
+
acc1
.
name
+
"
\"
,
\"
quantity
\"
:
\"
1000000.0000
SY
S
\"
}"
opts
=
"--permission eosio@active"
tr
=
node
.
pushMessage
(
contract
,
action
,
data
,
opts
)
trid
=
node
.
getTransId
(
tr
[
1
])
...
...
tests/testUtils.py
浏览文件 @
7a4c6180
...
...
@@ -537,7 +537,7 @@ class Node(object):
# Create & initialize account and return creation transactions. Return transaction json object
def
createInitializeAccount
(
self
,
account
,
creatorAccount
,
stakedDeposit
=
1000
,
waitForTransBlock
=
False
):
cmd
=
'%s %s system newaccount -j %s %s %s %s --stake-net "100
EOS" --stake-cpu "100 EOS" --buy-ram-EOS "100 EO
S"'
%
(
cmd
=
'%s %s system newaccount -j %s %s %s %s --stake-net "100
SYS" --stake-cpu "100 SYS" --buy-ram-EOS "100 SY
S"'
%
(
Utils
.
EosClientPath
,
self
.
endpointArgs
,
creatorAccount
.
name
,
account
.
name
,
account
.
ownerPublicKey
,
account
.
activePublicKey
)
...
...
@@ -553,7 +553,7 @@ class Node(object):
if
stakedDeposit
>
0
:
self
.
waitForTransIdOnNode
(
transId
)
# seems like account creation needs to be finlized before transfer can happen
trans
=
self
.
transferFunds
(
creatorAccount
,
account
,
"%0.04f
EO
S"
%
(
stakedDeposit
/
10000
),
"init"
)
trans
=
self
.
transferFunds
(
creatorAccount
,
account
,
"%0.04f
SY
S"
%
(
stakedDeposit
/
10000
),
"init"
)
transId
=
Node
.
getTransId
(
trans
)
if
waitForTransBlock
and
not
self
.
waitForTransIdOnNode
(
transId
):
...
...
@@ -580,7 +580,7 @@ class Node(object):
if
stakedDeposit
>
0
:
self
.
waitForTransIdOnNode
(
transId
)
# seems like account creation needs to be finlized before transfer can happen
trans
=
self
.
transferFunds
(
creatorAccount
,
account
,
"%0.04f
EO
S"
%
(
stakedDeposit
/
10000
),
"init"
)
trans
=
self
.
transferFunds
(
creatorAccount
,
account
,
"%0.04f
SY
S"
%
(
stakedDeposit
/
10000
),
"init"
)
transId
=
Node
.
getTransId
(
trans
)
if
waitForTransBlock
and
not
self
.
waitForTransIdOnNode
(
transId
):
...
...
@@ -786,7 +786,7 @@ class Node(object):
return
servants
def
getAccountEosBalanceStr
(
self
,
scope
):
"""Returns EOS currency0000 account balance from cleos get table command. Returned balance is string following syntax "98.0311
EO
S". """
"""Returns EOS currency0000 account balance from cleos get table command. Returned balance is string following syntax "98.0311
SY
S". """
assert
isinstance
(
scope
,
str
)
if
not
self
.
enableMongo
:
amount
=
self
.
getNodeAccountBalance
(
"eosio.token"
,
scope
)
...
...
@@ -1927,7 +1927,7 @@ class Cluster(object):
contract
=
eosioTokenAccount
.
name
Utils
.
Print
(
"push create action to %s contract"
%
(
contract
))
action
=
"create"
data
=
"{
\"
issuer
\"
:
\"
%s
\"
,
\"
maximum_supply
\"
:
\"
1000000000.0000
EO
S
\"
,
\"
can_freeze
\"
:
\"
0
\"
,
\"
can_recall
\"
:
\"
0
\"
,
\"
can_whitelist
\"
:
\"
0
\"
}"
%
(
eosioTokenAccount
.
name
)
data
=
"{
\"
issuer
\"
:
\"
%s
\"
,
\"
maximum_supply
\"
:
\"
1000000000.0000
SY
S
\"
,
\"
can_freeze
\"
:
\"
0
\"
,
\"
can_recall
\"
:
\"
0
\"
,
\"
can_whitelist
\"
:
\"
0
\"
}"
%
(
eosioTokenAccount
.
name
)
opts
=
"--permission %s@active"
%
(
contract
)
trans
=
biosNode
.
pushMessage
(
contract
,
action
,
data
,
opts
)
if
trans
is
None
or
not
trans
[
0
]:
...
...
@@ -1941,7 +1941,7 @@ class Cluster(object):
contract
=
eosioTokenAccount
.
name
Utils
.
Print
(
"push issue action to %s contract"
%
(
contract
))
action
=
"issue"
data
=
"{
\"
to
\"
:
\"
%s
\"
,
\"
quantity
\"
:
\"
1000000000.0000
EO
S
\"
,
\"
memo
\"
:
\"
initial issue
\"
}"
%
(
eosioAccount
.
name
)
data
=
"{
\"
to
\"
:
\"
%s
\"
,
\"
quantity
\"
:
\"
1000000000.0000
SY
S
\"
,
\"
memo
\"
:
\"
initial issue
\"
}"
%
(
eosioAccount
.
name
)
opts
=
"--permission %s@active"
%
(
contract
)
trans
=
biosNode
.
pushMessage
(
contract
,
action
,
data
,
opts
)
if
trans
is
None
or
not
trans
[
0
]:
...
...
@@ -1953,7 +1953,7 @@ class Cluster(object):
transId
=
Node
.
getTransId
(
trans
[
1
])
biosNode
.
waitForTransIdOnNode
(
transId
)
expectedAmount
=
"1000000000.0000
EO
S"
expectedAmount
=
"1000000000.0000
SY
S"
Utils
.
Print
(
"Verify eosio issue, Expected: %s"
%
(
expectedAmount
))
actualAmount
=
biosNode
.
getAccountEosBalanceStr
(
eosioAccount
.
name
)
if
expectedAmount
!=
actualAmount
:
...
...
@@ -1973,7 +1973,7 @@ class Cluster(object):
Node
.
validateTransaction
(
trans
)
initialFunds
=
"1000000.0000
EO
S"
initialFunds
=
"1000000.0000
SY
S"
Utils
.
Print
(
"Transfer initial fund %s to individual accounts."
%
(
initialFunds
))
trans
=
None
contract
=
eosioTokenAccount
.
name
...
...
unittests/eosio.system_tests.cpp
浏览文件 @
7a4c6180
...
...
@@ -1900,7 +1900,7 @@ BOOST_FIXTURE_TEST_CASE(producers_upgrade_system_contract, eosio_system_tester)
abi_serializer
msig_abi_ser
;
{
create_account_with_resources
(
N
(
eosio
.
msig
),
N
(
eosio
)
);
BOOST_REQUIRE_EQUAL
(
success
(),
buyram
(
"eosio"
,
"eosio.msig"
,
"5000.0000
EO
S"
)
);
BOOST_REQUIRE_EQUAL
(
success
(),
buyram
(
"eosio"
,
"eosio.msig"
,
"5000.0000
SY
S"
)
);
produce_block
();
auto
trace
=
base_tester
::
push_action
(
config
::
system_account_name
,
N
(
setpriv
),
...
...
@@ -1920,8 +1920,8 @@ BOOST_FIXTURE_TEST_CASE(producers_upgrade_system_contract, eosio_system_tester)
}
//stake more than 15% of total EOS supply to activate chain
transfer
(
"eosio"
,
"alice1111111"
,
"650000000.0000
EO
S"
,
"eosio"
);
BOOST_REQUIRE_EQUAL
(
success
(),
stake
(
"alice1111111"
,
"alice1111111"
,
"300000000.0000
EOS"
,
"300000000.0000 EO
S"
)
);
transfer
(
"eosio"
,
"alice1111111"
,
"650000000.0000
SY
S"
,
"eosio"
);
BOOST_REQUIRE_EQUAL
(
success
(),
stake
(
"alice1111111"
,
"alice1111111"
,
"300000000.0000
SYS"
,
"300000000.0000 SY
S"
)
);
// create accounts {defproducera, defproducerb, ..., defproducerz} and register as producers
std
::
vector
<
account_name
>
producer_names
;
...
...
@@ -1955,9 +1955,9 @@ BOOST_FIXTURE_TEST_CASE(producers_upgrade_system_contract, eosio_system_tester)
//vote for producers
{
transfer
(
config
::
system_account_name
,
"alice1111111"
,
"100000000.0000
EO
S"
,
config
::
system_account_name
);
BOOST_REQUIRE_EQUAL
(
success
(),
stake
(
"alice1111111"
,
"30000000.0000
EOS"
,
"30000000.0000 EO
S"
)
);
BOOST_REQUIRE_EQUAL
(
success
(),
buyram
(
"alice1111111"
,
"alice1111111"
,
"30000000.0000
EO
S"
)
);
transfer
(
config
::
system_account_name
,
"alice1111111"
,
"100000000.0000
SY
S"
,
config
::
system_account_name
);
BOOST_REQUIRE_EQUAL
(
success
(),
stake
(
"alice1111111"
,
"30000000.0000
SYS"
,
"30000000.0000 SY
S"
)
);
BOOST_REQUIRE_EQUAL
(
success
(),
buyram
(
"alice1111111"
,
"alice1111111"
,
"30000000.0000
SY
S"
)
);
BOOST_REQUIRE_EQUAL
(
success
(),
push_action
(
N
(
alice1111111
),
N
(
voteproducer
),
mvo
()
(
"voter"
,
"alice1111111"
)
(
"proxy"
,
name
(
0
).
to_string
())
...
...
unittests/multisig_tests.cpp
浏览文件 @
7a4c6180
...
...
@@ -53,7 +53,7 @@ public:
}
transaction_trace_ptr
create_account_with_resources
(
account_name
a
,
account_name
creator
,
asset
ramfunds
,
bool
multisig
,
asset
net
=
asset
::
from_string
(
"10.0000
EOS"
),
asset
cpu
=
asset
::
from_string
(
"10.0000 EO
S"
)
)
{
asset
net
=
asset
::
from_string
(
"10.0000
SYS"
),
asset
cpu
=
asset
::
from_string
(
"10.0000 SY
S"
)
)
{
signed_transaction
trx
;
set_transaction_headers
(
trx
);
...
...
@@ -129,14 +129,14 @@ public:
// the balance is implied to be 0 if either the table or row does not exist
if
(
tbl
)
{
const
auto
*
obj
=
db
.
find
<
key_value_object
,
by_scope_primary
>
(
boost
::
make_tuple
(
tbl
->
id
,
symbol
(
SY
(
4
,
EO
S
)).
to_symbol_code
()));
const
auto
*
obj
=
db
.
find
<
key_value_object
,
by_scope_primary
>
(
boost
::
make_tuple
(
tbl
->
id
,
symbol
(
SY
(
4
,
SY
S
)).
to_symbol_code
()));
if
(
obj
)
{
// balance is the first field in the serialization
fc
::
datastream
<
const
char
*>
ds
(
obj
->
value
.
data
(),
obj
->
value
.
size
());
fc
::
raw
::
unpack
(
ds
,
result
);
}
}
return
asset
(
result
,
symbol
(
SY
(
4
,
EO
S
))
);
return
asset
(
result
,
symbol
(
SY
(
4
,
SY
S
))
);
}
transaction_trace_ptr
push_action
(
const
account_name
&
signer
,
const
action_name
&
name
,
const
variant_object
&
data
,
bool
auth
=
true
)
{
...
...
@@ -421,20 +421,20 @@ BOOST_FIXTURE_TEST_CASE( update_system_contract_all_approve, eosio_msig_tester )
set_code
(
N
(
eosio
.
token
),
eosio_token_wast
);
set_abi
(
N
(
eosio
.
token
),
eosio_token_abi
);
create_currency
(
N
(
eosio
.
token
),
config
::
system_account_name
,
asset
::
from_string
(
"10000000000.0000
EO
S"
)
);
issue
(
config
::
system_account_name
,
"1000000000.0000
EO
S"
);
BOOST_REQUIRE_EQUAL
(
asset
::
from_string
(
"1000000000.0000
EO
S"
),
get_balance
(
"eosio"
)
);
create_currency
(
N
(
eosio
.
token
),
config
::
system_account_name
,
asset
::
from_string
(
"10000000000.0000
SY
S"
)
);
issue
(
config
::
system_account_name
,
"1000000000.0000
SY
S"
);
BOOST_REQUIRE_EQUAL
(
asset
::
from_string
(
"1000000000.0000
SY
S"
),
get_balance
(
"eosio"
)
);
set_code
(
config
::
system_account_name
,
eosio_system_wast
);
set_abi
(
config
::
system_account_name
,
eosio_system_abi
);
produce_blocks
();
create_account_with_resources
(
N
(
alice1111111
),
N
(
eosio
),
asset
::
from_string
(
"1.0000
EO
S"
),
false
);
create_account_with_resources
(
N
(
bob111111111
),
N
(
eosio
),
asset
::
from_string
(
"0.4500
EO
S"
),
false
);
create_account_with_resources
(
N
(
carol1111111
),
N
(
eosio
),
asset
::
from_string
(
"1.0000
EO
S"
),
false
);
create_account_with_resources
(
N
(
alice1111111
),
N
(
eosio
),
asset
::
from_string
(
"1.0000
SY
S"
),
false
);
create_account_with_resources
(
N
(
bob111111111
),
N
(
eosio
),
asset
::
from_string
(
"0.4500
SY
S"
),
false
);
create_account_with_resources
(
N
(
carol1111111
),
N
(
eosio
),
asset
::
from_string
(
"1.0000
SY
S"
),
false
);
BOOST_REQUIRE_EQUAL
(
asset
::
from_string
(
"1000000000.0000
EO
S"
),
get_balance
(
"eosio"
)
);
BOOST_REQUIRE_EQUAL
(
asset
::
from_string
(
"1000000000.0000
SY
S"
),
get_balance
(
"eosio"
)
);
vector
<
permission_level
>
perm
=
{
{
N
(
alice
),
config
::
active_name
},
{
N
(
bob
),
config
::
active_name
},
{
N
(
carol
),
config
::
active_name
}
};
...
...
@@ -508,7 +508,7 @@ BOOST_FIXTURE_TEST_CASE( update_system_contract_all_approve, eosio_msig_tester )
BOOST_REQUIRE_EQUAL
(
transaction_receipt
::
executed
,
trace
->
receipt
->
status
);
// can't create account because system contract was replace by the test_api contract
BOOST_REQUIRE_EXCEPTION
(
create_account_with_resources
(
N
(
alice1111112
),
N
(
eosio
),
asset
::
from_string
(
"1.0000
EO
S"
),
false
),
BOOST_REQUIRE_EXCEPTION
(
create_account_with_resources
(
N
(
alice1111112
),
N
(
eosio
),
asset
::
from_string
(
"1.0000
SY
S"
),
false
),
fc
::
assert_exception
,
[](
const
fc
::
exception
&
e
)
{
return
expect_assert_message
(
e
,
"condition: assertion failed: Unknown Test"
);
...
...
@@ -532,20 +532,20 @@ BOOST_FIXTURE_TEST_CASE( update_system_contract_major_approve, eosio_msig_tester
set_code
(
N
(
eosio
.
token
),
eosio_token_wast
);
set_abi
(
N
(
eosio
.
token
),
eosio_token_abi
);
create_currency
(
N
(
eosio
.
token
),
config
::
system_account_name
,
asset
::
from_string
(
"10000000000.0000
EO
S"
)
);
issue
(
config
::
system_account_name
,
"1000000000.0000
EO
S"
);
BOOST_REQUIRE_EQUAL
(
asset
::
from_string
(
"1000000000.0000
EO
S"
),
get_balance
(
"eosio"
)
);
create_currency
(
N
(
eosio
.
token
),
config
::
system_account_name
,
asset
::
from_string
(
"10000000000.0000
SY
S"
)
);
issue
(
config
::
system_account_name
,
"1000000000.0000
SY
S"
);
BOOST_REQUIRE_EQUAL
(
asset
::
from_string
(
"1000000000.0000
SY
S"
),
get_balance
(
"eosio"
)
);
set_code
(
config
::
system_account_name
,
eosio_system_wast
);
set_abi
(
config
::
system_account_name
,
eosio_system_abi
);
produce_blocks
();
create_account_with_resources
(
N
(
alice1111111
),
N
(
eosio
),
asset
::
from_string
(
"1.0000
EO
S"
),
false
);
create_account_with_resources
(
N
(
bob111111111
),
N
(
eosio
),
asset
::
from_string
(
"0.4500
EO
S"
),
false
);
create_account_with_resources
(
N
(
carol1111111
),
N
(
eosio
),
asset
::
from_string
(
"1.0000
EO
S"
),
false
);
create_account_with_resources
(
N
(
alice1111111
),
N
(
eosio
),
asset
::
from_string
(
"1.0000
SY
S"
),
false
);
create_account_with_resources
(
N
(
bob111111111
),
N
(
eosio
),
asset
::
from_string
(
"0.4500
SY
S"
),
false
);
create_account_with_resources
(
N
(
carol1111111
),
N
(
eosio
),
asset
::
from_string
(
"1.0000
SY
S"
),
false
);
BOOST_REQUIRE_EQUAL
(
asset
::
from_string
(
"1000000000.0000
EO
S"
),
get_balance
(
"eosio"
)
);
BOOST_REQUIRE_EQUAL
(
asset
::
from_string
(
"1000000000.0000
SY
S"
),
get_balance
(
"eosio"
)
);
vector
<
permission_level
>
perm
=
{
{
N
(
alice
),
config
::
active_name
},
{
N
(
bob
),
config
::
active_name
},
{
N
(
carol
),
config
::
active_name
},
{
N
(
apple
),
config
::
active_name
}};
...
...
@@ -634,7 +634,7 @@ BOOST_FIXTURE_TEST_CASE( update_system_contract_major_approve, eosio_msig_tester
BOOST_REQUIRE_EQUAL
(
transaction_receipt
::
executed
,
trace
->
receipt
->
status
);
// can't create account because system contract was replace by the test_api contract
BOOST_REQUIRE_EXCEPTION
(
create_account_with_resources
(
N
(
alice1111112
),
N
(
eosio
),
asset
::
from_string
(
"1.0000
EO
S"
),
false
),
BOOST_REQUIRE_EXCEPTION
(
create_account_with_resources
(
N
(
alice1111112
),
N
(
eosio
),
asset
::
from_string
(
"1.0000
SY
S"
),
false
),
fc
::
assert_exception
,
[](
const
fc
::
exception
&
e
)
{
return
expect_assert_message
(
e
,
"condition: assertion failed: Unknown Test"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录