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
c88fbfad
Commit
c88fbfad
authored
Jun 14, 2019
by
linj
Committed by
mdj33
Sep 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix unfreeze rpc test
parent
c115a0d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
test-rpc.sh
plugin/dapp/unfreeze/cmd/build/test-rpc.sh
+5
-5
No files found.
plugin/dapp/unfreeze/cmd/build/test-rpc.sh
View file @
c88fbfad
...
@@ -18,7 +18,7 @@ function query_unfreezeID() {
...
@@ -18,7 +18,7 @@ function query_unfreezeID() {
tx
=
$(
jq
-r
".result.tx.hash"
<<<
"
$ret
"
)
tx
=
$(
jq
-r
".result.tx.hash"
<<<
"
$ret
"
)
echo
"====query tx=
${
txhash
}
, return=
$ret
"
echo
"====query tx=
${
txhash
}
, return=
$ret
"
if
[
"
${
tx
}
"
!=
"
${
txhash
}
"
]
;
then
if
[
"
${
tx
}
"
!=
"
${
txhash
}
"
]
;
then
block_wait 1
chain33_BlockWait 1
"
${
MAIN_HTTP
}
"
times
=
$((
times
-
1
))
times
=
$((
times
-
1
))
if
[
$times
-le
0
]
;
then
if
[
$times
-le
0
]
;
then
echo
"====query tx=
$txhash
failed"
echo
"====query tx=
$txhash
failed"
...
@@ -55,9 +55,9 @@ function init() {
...
@@ -55,9 +55,9 @@ function init() {
owner_key=CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944
owner_key=CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944
#unfreeze_exec_addr=15YsqAuXeEXVHgm6RVx4oJaAAnhtwqnu3H
#unfreeze_exec_addr=15YsqAuXeEXVHgm6RVx4oJaAAnhtwqnu3H
C
hain33_SendToAddress "
$owner
" "
$exec_addr
" 500000000 "
${
MAIN_HTTP
}
"
c
hain33_SendToAddress "
$owner
" "
$exec_addr
" 500000000 "
${
MAIN_HTTP
}
"
C
hain33_SendToAddress "
$beneficiary
" "
$exec_addr
" 500000000 "
${
MAIN_HTTP
}
"
c
hain33_SendToAddress "
$beneficiary
" "
$exec_addr
" 500000000 "
${
MAIN_HTTP
}
"
block_wait 1
chain33_BlockWait 1 "
${
MAIN_HTTP
}
"
}
}
function CreateRawUnfreezeCreate() {
function CreateRawUnfreezeCreate() {
...
@@ -96,7 +96,7 @@ function CreateRawUnfreezeTerminate() {
...
@@ -96,7 +96,7 @@ function CreateRawUnfreezeTerminate() {
echo_rst "
$FUNCNAME
" "
$?
"
echo_rst "
$FUNCNAME
" "
$?
"
rawtx=
$(
jq
-r
".result"
<<<
"
$resp
"
)
rawtx=
$(
jq
-r
".result"
<<<
"
$resp
"
)
chain33_SignRawTx "
$rawtx
" "
$owner_key
" "
${
MAIN_HTTP
}
"
chain33_SignRawTx "
$rawtx
" "
$owner_key
" "
${
MAIN_HTTP
}
"
block_wait 2
chain33_BlockWait 2 "
${
MAIN_HTTP
}
"
}
}
function GetUnfreeze() {
function GetUnfreeze() {
...
...
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