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
dee470bc
Commit
dee470bc
authored
May 30, 2019
by
vipwzw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
e6cee5e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
test-rpc.sh
plugin/dapp/hashlock/cmd/build/test-rpc.sh
+3
-9
No files found.
plugin/dapp/hashlock/cmd/build/test-rpc.sh
View file @
dee470bc
...
...
@@ -65,7 +65,6 @@ importPrivkey2() {
echo_rst
"
$FUNCNAME
"
"
$?
"
}
sendTransaction
()
{
ispara
=
$(
echo
'"'
"
${
MAIN_HTTP
}
"
'"'
| jq
'.|contains("8901")'
)
echo
"ipara=
$ispara
"
...
...
@@ -74,7 +73,7 @@ sendTransaction() {
Chain33_SendToAddress 14KEKbYtKKQm4wMthSK9J4La4nAiidGozt 12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv 12000000000
fi
Chain33_SendToAddress 12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv 14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
12000000000
Chain33_SendToAddress 12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv 14KEKbYtKKQm4wMthSK9J4La4nAiidGozt 12000000000
}
sendToExec
()
{
...
...
@@ -82,7 +81,6 @@ sendToExec() {
Chain33_SendToAddress
"
$from
"
"
$hashlock_addr
"
2000000000
}
queryBalance
()
{
addr
=
$1
req
=
'"method":"Chain33.GetAllExecBalance","params":[{"addr":"'
"
${
addr
}
"
'"}]'
...
...
@@ -92,7 +90,7 @@ queryBalance() {
ok
=
$(
jq
'(.error|not) and (.result != "")'
<<<
"
$resp
"
)
[
"
$ok
"
==
true
]
echo_rst
"
$FUNCNAME
"
"
$?
"
echo
$resp
|
jq
-r
".result"
echo
$resp
|
jq
-r
".result"
}
hashlock_lock
()
{
...
...
@@ -235,7 +233,6 @@ init() {
echo
"hashlock_addr=
$hashlock_addr
"
}
function
run_test
()
{
#保存seed
...
...
@@ -296,7 +293,6 @@ function run_test() {
queryBalance
$addr_A
queryBalance
$addr_B
#lock
hashlock_lock
...
...
@@ -307,7 +303,6 @@ function run_test() {
#unlock failed
hashlock_unlock
#等待2个区块
block_wait 2
...
...
@@ -335,4 +330,4 @@ function main() {
main
"
$1
"
set
+x
\ No newline at end of file
set
+x
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