Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
5b480428
Commit
5b480428
authored
Oct 18, 2021
by
QM
Committed by
vipwzw
Oct 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix autonomy test
parent
eed946c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
autonomyTest.sh
plugin/dapp/autonomy/cmd/build/autonomyTest.sh
+15
-13
No files found.
plugin/dapp/autonomy/cmd/build/autonomyTest.sh
View file @
5b480428
...
...
@@ -104,6 +104,8 @@ source "./publicTest.sh"
publicPeriod
=
172800
pubAttendRatio
=
60
pubApproveRatio
=
65
start_block
=
50
}
function
update_last_header
()
{
...
...
@@ -159,11 +161,11 @@ function check_activeRule() {
function
testProposalRule
()
{
# proposal
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
update_last_header
50
update_last_header
"
${
start_block
}
"
proposalRuleTx
#vote
block_wait
"
${
Chain33Cli
}
"
10
block_wait
"
${
Chain33Cli
}
"
"
${
start_block
}
"
raw
=
$(${
Chain33Cli
}
autonomy voteRule
-r
1
-p
"
${
proposalRuleID
}
"
)
sign_and_send
"
${
raw
}
"
"
${
votePrKey
}
"
raw
=
$(${
Chain33Cli
}
autonomy voteRule
-r
1
-p
"
${
proposalRuleID
}
"
)
...
...
@@ -213,11 +215,11 @@ function check_activeBoard() {
function
testProposalBoard
()
{
#proposal
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
update_last_header
50
update_last_header
"
${
start_block
}
"
proposalBoardTx
#vote
block_wait
"
${
Chain33Cli
}
"
10
block_wait
"
${
Chain33Cli
}
"
"
${
start_block
}
"
raw
=
$(${
Chain33Cli
}
autonomy voteBoard
-r
1
-p
"
${
proposalBoardID
}
"
)
sign_and_send
"
${
raw
}
"
"
${
votePrKey
}
"
raw
=
$(${
Chain33Cli
}
autonomy voteBoard
-r
1
-p
"
${
proposalBoardID
}
"
)
...
...
@@ -253,11 +255,11 @@ function showProject_status() {
function
testProposalProject
()
{
# proposal
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
update_last_header
50
update_last_header
"
${
start_block
}
"
proposalProjectTx
#vote
block_wait
"
${
Chain33Cli
}
"
10
block_wait
"
${
Chain33Cli
}
"
"
${
start_block
}
"
for
((
i
=
0
;
i < 13
;
i++
))
;
do
raw
=
$(${
Chain33Cli
}
autonomy voteProject
-r
1
-p
"
${
proposalProjectID
}
"
)
sign_and_send
"
${
raw
}
"
"
${
arrayKey
[
$i
]
}
"
...
...
@@ -304,7 +306,7 @@ function testProposalChange() {
hash
=
$(${
Chain33Cli
}
send coins transfer
-a
20
-n
test
-t
"
${
autonomyAddr
}
"
-k
"
${
arrayKey
[21]
}
"
)
check_tx
"
${
Chain33Cli
}
"
"
${
hash
}
"
update_last_header
50
update_last_header
"
${
start_block
}
"
proposalChangeTx
"
${
changeAddr
}
"
"
${
arrayKey
[20]
}
"
ret
=
$(${
Chain33Cli
}
autonomy showActiveBoard | jq
-r
".boards[20]"
)
...
...
@@ -313,7 +315,7 @@ function testProposalChange() {
fi
#vote
block_wait
"
${
Chain33Cli
}
"
10
block_wait
"
${
Chain33Cli
}
"
"
${
start_block
}
"
for
((
i
=
0
;
i < 13
;
i++
))
;
do
raw
=
$(${
Chain33Cli
}
autonomy voteChange
-r
1
-p
"
${
proposalChangeID
}
"
)
sign_and_send
"
${
raw
}
"
"
${
arrayKey
[
$i
]
}
"
...
...
@@ -341,19 +343,19 @@ function testProposalChange() {
function
testProposalTerminate
()
{
#test terminate
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
update_last_header
50
update_last_header
"
${
start_block
}
"
proposalRuleTx
update_last_header
50
update_last_header
"
${
start_block
}
"
proposalBoardTx
update_last_header
50
update_last_header
"
${
start_block
}
"
proposalProjectTx
update_last_header
50
update_last_header
"
${
start_block
}
"
proposalChangeTx
"
${
changeAddr2
}
"
"
${
arrayKey
[21]
}
"
block_wait
"
${
Chain33Cli
}
"
85
0
block_wait
"
${
Chain33Cli
}
"
90
0
raw
=
$(${
Chain33Cli
}
autonomy terminateRule
-p
"
${
proposalRuleID
}
"
)
sign_and_send
"
${
raw
}
"
"
${
propKey
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment