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
ce1f3c5f
Commit
ce1f3c5f
authored
Sep 23, 2021
by
QM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
0a9813c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
56 deletions
+3
-56
autonomyTest.sh
plugin/dapp/autonomy/cmd/build/autonomyTest.sh
+3
-9
publicTest.sh
plugin/dapp/autonomy/cmd/build/publicTest.sh
+0
-47
No files found.
plugin/dapp/autonomy/cmd/build/autonomyTest.sh
View file @
ce1f3c5f
...
@@ -379,18 +379,11 @@ function mainTest() {
...
@@ -379,18 +379,11 @@ function mainTest() {
# shellcheck disable=SC2154
# shellcheck disable=SC2154
docker_chain33_ip
=
$(
get_docker_addr
"
${
dockerNamePrefix
}
_chain33_1"
)
docker_chain33_ip
=
$(
get_docker_addr
"
${
dockerNamePrefix
}
_chain33_1"
)
Chain33Cli
=
"./chain33-cli --rpc_laddr http://
${
docker_chain33_ip
}
:8801"
Chain33Cli
=
"./chain33-cli --rpc_laddr http://
${
docker_chain33_ip
}
:8801"
StartChain33
InitChain33Account
testProposalRule
testProposalRule
testProposalBoard
testProposalBoard
testProposalProject
testProposalProject
testProposalChange
testProposalChange
testProposalTerminate
testProposalTerminate
}
}
\ No newline at end of file
#Chain33Cli="../../../../../build/chain33-cli --rpc_laddr http://172.20.0.2:8801"
#testProposalProject
#testProposalChange
#testProposalTerminate
#testProposalChange
plugin/dapp/autonomy/cmd/build/publicTest.sh
View file @
ce1f3c5f
...
@@ -21,19 +21,6 @@ function get_docker_addr() {
...
@@ -21,19 +21,6 @@ function get_docker_addr() {
echo
"
${
dockerAddr
}
"
echo
"
${
dockerAddr
}
"
}
}
#function block_wait() {
# set +x
# set +x
# local block=$1
# for((i=1;i<=block;i++));do
# hash=$(${Chain33Cli} send coins transfer -a 0.001 -n test -t "${propAddr}" -k CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944)
# check_tx "${Chain33Cli}" "${hash}"
# echo "这是第 $i 次调用";
# done;
# set -x
# set -x
#}
# 杀死进程ebrelayer 进程 $1进程名称
# 杀死进程ebrelayer 进程 $1进程名称
function
kill_ebrelayer
()
{
function
kill_ebrelayer
()
{
# shellcheck disable=SC2009
# shellcheck disable=SC2009
...
@@ -278,16 +265,9 @@ function InitChain33Account() {
...
@@ -278,16 +265,9 @@ function InitChain33Account() {
import_addr
"
${
changeKey
}
"
"changeTest"
"
${
changeAddr
}
"
10
import_addr
"
${
changeKey
}
"
"changeTest"
"
${
changeAddr
}
"
10
autonomyAddr
=
$(${
Chain33Cli
}
exec
addr
-e
autonomy
)
autonomyAddr
=
$(${
Chain33Cli
}
exec
addr
-e
autonomy
)
# ticketAddr=$(${Chain33Cli} exec addr -e ticket)
hash
=
$(${
Chain33Cli
}
send coins transfer
-a
900
-n
test
-t
"
${
autonomyAddr
}
"
-k
"
${
propKey
}
"
)
hash
=
$(${
Chain33Cli
}
send coins transfer
-a
900
-n
test
-t
"
${
autonomyAddr
}
"
-k
"
${
propKey
}
"
)
check_tx
"
${
Chain33Cli
}
"
"
${
hash
}
"
check_tx
"
${
Chain33Cli
}
"
"
${
hash
}
"
# hash=$(${Chain33Cli} send coins transfer -a 3100 -n test -t "${ticketAddr}" -k "${votePrKey}")
# check_tx "${Chain33Cli}" "${hash}"
# shellcheck disable=SC2154
# hash=$(${Chain33Cli} send coins transfer -a 10 -n test -t "${voteAddr2}" -k "${minerAddr}")
# check_tx "${Chain33Cli}" "${hash}"
local
count
=
0
local
count
=
0
# shellcheck disable=SC2154
# shellcheck disable=SC2154
...
@@ -298,30 +278,3 @@ function InitChain33Account() {
...
@@ -298,30 +278,3 @@ function InitChain33Account() {
done
done
}
}
# chian33 初始化准备
function
InitChain33
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
# init
# ${Chain33Cli} seed save -p 1314fuzamei -s "tortoise main civil member grace happy century convince father cage beach hip maid merry rib"
# ${Chain33Cli} wallet unlock -p 1314fuzamei -t 0
# ${Chain33Cli} account import_key -k CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944 -l returnAddr
InitChain33Account
echo
-e
"
${
GRE
}
===========
$FUNCNAME
end ===========
${
NOC
}
"
}
function
StartChain33
()
{
# kill_ebrelayer chain33
# sleep 2
#
# # delete chain33 datadir
# rm ../../datadir ../../logs -rf
#
# nohup ../../chain33 -f ./ci/autonomy/test.toml >chain33log.log 2>&1 &
#
# sleep 1
InitChain33
}
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