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
4b05cc97
Commit
4b05cc97
authored
May 29, 2019
by
pengjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test error
parent
be4a0821
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
test-rpc.sh
plugin/dapp/pokerbull/cmd/build/test-rpc.sh
+5
-5
test-rpc.sh
plugin/dapp/retrieve/cmd/build/test-rpc.sh
+9
-9
No files found.
plugin/dapp/pokerbull/cmd/build/test-rpc.sh
View file @
4b05cc97
...
@@ -73,7 +73,7 @@ pokerbull_PlayRawTx() {
...
@@ -73,7 +73,7 @@ pokerbull_PlayRawTx() {
[
"
$ok
"
==
true
]
[
"
$ok
"
==
true
]
echo_rst
"
$FUNCNAME
"
"
$?
"
echo_rst
"
$FUNCNAME
"
"
$?
"
signrawtx
"
$tx
"
"
CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944
"
"play"
signrawtx
"
$tx
"
"
56942AD84CCF4788ED6DACBC005A1D0C4F91B63BCF0C99A02BE03C8DEAE71138
"
"play"
echo
"========== # pokerbull play tx end =========="
echo
"========== # pokerbull play tx end =========="
block_wait 1
block_wait 1
...
@@ -89,7 +89,7 @@ pokerbull_QuitRawTx() {
...
@@ -89,7 +89,7 @@ pokerbull_QuitRawTx() {
[
"
$ok
"
==
true
]
[
"
$ok
"
==
true
]
echo_rst
"
$FUNCNAME
"
"
$?
"
echo_rst
"
$FUNCNAME
"
"
$?
"
signrawtx
"
$tx
"
"
CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944
"
"quit"
signrawtx
"
$tx
"
"
56942AD84CCF4788ED6DACBC005A1D0C4F91B63BCF0C99A02BE03C8DEAE71138
"
"quit"
echo
"========== # pokerbull quit tx end =========="
echo
"========== # pokerbull quit tx end =========="
block_wait 1
block_wait 1
...
@@ -105,7 +105,7 @@ pokerbull_ContinueRawTx() {
...
@@ -105,7 +105,7 @@ pokerbull_ContinueRawTx() {
[
"
$ok
"
==
true
]
[
"
$ok
"
==
true
]
echo_rst
"
$FUNCNAME
"
"
$?
"
echo_rst
"
$FUNCNAME
"
"
$?
"
signrawtx
"
$tx
"
"
0x9c451df9e5cb05b88b28729aeaaeb3169a2414097401fcb4c79c1971df734588
"
"continue"
signrawtx
"
$tx
"
"
2116459C0EC8ED01AA0EEAE35CAC5C96F94473F7816F114873291217303F6989
"
"continue"
echo
"========== # pokerbull continue tx end =========="
echo
"========== # pokerbull continue tx end =========="
block_wait 1
block_wait 1
...
@@ -121,7 +121,7 @@ pokerbull_StartRawTx() {
...
@@ -121,7 +121,7 @@ pokerbull_StartRawTx() {
[
"
$ok
"
==
true
]
[
"
$ok
"
==
true
]
echo_rst
"
$FUNCNAME
"
"
$?
"
echo_rst
"
$FUNCNAME
"
"
$?
"
signrawtx
"
$tx
"
"
CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944
"
"start"
signrawtx
"
$tx
"
"
56942AD84CCF4788ED6DACBC005A1D0C4F91B63BCF0C99A02BE03C8DEAE71138
"
"start"
echo
"========== # pokerbull start tx end =========="
echo
"========== # pokerbull start tx end =========="
block_wait 1
block_wait 1
...
@@ -135,7 +135,7 @@ pokerbull_QueryResult() {
...
@@ -135,7 +135,7 @@ pokerbull_QueryResult() {
[
"
$ok
"
==
true
]
[
"
$ok
"
==
true
]
echo_rst
"
$FUNCNAME
"
"
$?
"
echo_rst
"
$FUNCNAME
"
"
$?
"
data
=
$(
curl
-ksd
'{"method":"Chain33.Query","params":[{"execer":"pokerbull","funcName":"QueryGameByAddr","payload":{"addr":"1
4KEKbYtKKQm4wMthSK9J4La4nAiidGozt
"}}]}'
${
MAIN_HTTP
}
| jq
-r
".result"
)
data
=
$(
curl
-ksd
'{"method":"Chain33.Query","params":[{"execer":"pokerbull","funcName":"QueryGameByAddr","payload":{"addr":"1
PUiGcbsccfxW3zuvHXZBJfznziph5miAo
"}}]}'
${
MAIN_HTTP
}
| jq
-r
".result"
)
[
"
$data
"
!=
null
]
[
"
$data
"
!=
null
]
echo_rst
"
$FUNCNAME
"
"
$?
"
echo_rst
"
$FUNCNAME
"
"
$?
"
...
...
plugin/dapp/retrieve/cmd/build/test-rpc.sh
View file @
4b05cc97
...
@@ -65,7 +65,7 @@ function query_tx() {
...
@@ -65,7 +65,7 @@ function query_tx() {
retrieve_Backup
()
{
retrieve_Backup
()
{
echo
"========== # retrieve backup begin =========="
echo
"========== # retrieve backup begin =========="
req
=
'"method":"retrieve.CreateRawRetrieveBackupTx","params":[{"backupAddr":"1E
5saiXVb9mW8wcWUUZjsHJPZs5GmdzuSY","defaultAddr":"14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
","delayPeriod": 61}]'
req
=
'"method":"retrieve.CreateRawRetrieveBackupTx","params":[{"backupAddr":"1E
DnnePAZN48aC2hiTDzhkczfF39g1pZZX","defaultAddr":"1PUiGcbsccfxW3zuvHXZBJfznziph5miAo
","delayPeriod": 61}]'
tx
=
$(
curl
-ksd
"{
$req
}"
${
MAIN_HTTP
}
| jq
-r
".result"
)
tx
=
$(
curl
-ksd
"{
$req
}"
${
MAIN_HTTP
}
| jq
-r
".result"
)
reqDecode
=
'"method":"Chain33.DecodeRawTransaction","params":[{"txHex":"'
"
$tx
"
'"}]'
reqDecode
=
'"method":"Chain33.DecodeRawTransaction","params":[{"txHex":"'
"
$tx
"
'"}]'
...
@@ -75,7 +75,7 @@ retrieve_Backup() {
...
@@ -75,7 +75,7 @@ retrieve_Backup() {
[
"
$ok
"
==
true
]
[
"
$ok
"
==
true
]
echo_rst
"
$FUNCNAME
"
"
$?
"
echo_rst
"
$FUNCNAME
"
"
$?
"
signrawtx
"
$tx
"
"
CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944
"
signrawtx
"
$tx
"
"
56942AD84CCF4788ED6DACBC005A1D0C4F91B63BCF0C99A02BE03C8DEAE71138
"
echo
"========== # retrieve backup end =========="
echo
"========== # retrieve backup end =========="
block_wait 1
block_wait 1
...
@@ -84,7 +84,7 @@ retrieve_Backup() {
...
@@ -84,7 +84,7 @@ retrieve_Backup() {
retrieve_Prepare
()
{
retrieve_Prepare
()
{
echo
"========== # retrieve prepare begin =========="
echo
"========== # retrieve prepare begin =========="
req
=
'"method":"retrieve.CreateRawRetrievePrepareTx","params":[{"backupAddr":"1E
5saiXVb9mW8wcWUUZjsHJPZs5GmdzuSY","defaultAddr":"14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
"}]'
req
=
'"method":"retrieve.CreateRawRetrievePrepareTx","params":[{"backupAddr":"1E
DnnePAZN48aC2hiTDzhkczfF39g1pZZX","defaultAddr":"1PUiGcbsccfxW3zuvHXZBJfznziph5miAo
"}]'
tx
=
$(
curl
-ksd
"{
$req
}"
${
MAIN_HTTP
}
| jq
-r
".result"
)
tx
=
$(
curl
-ksd
"{
$req
}"
${
MAIN_HTTP
}
| jq
-r
".result"
)
reqDecode
=
'"method":"Chain33.DecodeRawTransaction","params":[{"txHex":"'
"
$tx
"
'"}]'
reqDecode
=
'"method":"Chain33.DecodeRawTransaction","params":[{"txHex":"'
"
$tx
"
'"}]'
...
@@ -94,7 +94,7 @@ retrieve_Prepare() {
...
@@ -94,7 +94,7 @@ retrieve_Prepare() {
[
"
$ok
"
==
true
]
[
"
$ok
"
==
true
]
echo_rst
"
$FUNCNAME
"
"
$?
"
echo_rst
"
$FUNCNAME
"
"
$?
"
signrawtx
"
$tx
"
"
0x9c451df9e5cb05b88b28729aeaaeb3169a2414097401fcb4c79c1971df734588
"
signrawtx
"
$tx
"
"
2116459C0EC8ED01AA0EEAE35CAC5C96F94473F7816F114873291217303F6989
"
echo
"========== # retrieve prepare end =========="
echo
"========== # retrieve prepare end =========="
block_wait 1
block_wait 1
...
@@ -103,7 +103,7 @@ retrieve_Prepare() {
...
@@ -103,7 +103,7 @@ retrieve_Prepare() {
retrieve_Perform
()
{
retrieve_Perform
()
{
echo
"========== # retrieve perform begin =========="
echo
"========== # retrieve perform begin =========="
req
=
'"method":"retrieve.CreateRawRetrievePerformTx","params":[{"backupAddr":"1E
5saiXVb9mW8wcWUUZjsHJPZs5GmdzuSY","defaultAddr":"14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
"}]'
req
=
'"method":"retrieve.CreateRawRetrievePerformTx","params":[{"backupAddr":"1E
DnnePAZN48aC2hiTDzhkczfF39g1pZZX","defaultAddr":"1PUiGcbsccfxW3zuvHXZBJfznziph5miAo
"}]'
tx
=
$(
curl
-ksd
"{
$req
}"
${
MAIN_HTTP
}
| jq
-r
".result"
)
tx
=
$(
curl
-ksd
"{
$req
}"
${
MAIN_HTTP
}
| jq
-r
".result"
)
reqDecode
=
'"method":"Chain33.DecodeRawTransaction","params":[{"txHex":"'
"
$tx
"
'"}]'
reqDecode
=
'"method":"Chain33.DecodeRawTransaction","params":[{"txHex":"'
"
$tx
"
'"}]'
...
@@ -113,7 +113,7 @@ retrieve_Perform() {
...
@@ -113,7 +113,7 @@ retrieve_Perform() {
[
"
$ok
"
==
true
]
[
"
$ok
"
==
true
]
echo_rst
"
$FUNCNAME
"
"
$?
"
echo_rst
"
$FUNCNAME
"
"
$?
"
signrawtx
"
$tx
"
"
0x9c451df9e5cb05b88b28729aeaaeb3169a2414097401fcb4c79c1971df734588
"
signrawtx
"
$tx
"
"
2116459C0EC8ED01AA0EEAE35CAC5C96F94473F7816F114873291217303F6989
"
echo
"========== # retrieve perform end =========="
echo
"========== # retrieve perform end =========="
block_wait 1
block_wait 1
...
@@ -122,7 +122,7 @@ retrieve_Perform() {
...
@@ -122,7 +122,7 @@ retrieve_Perform() {
retrieve_Cancel
()
{
retrieve_Cancel
()
{
echo
"========== # retrieve cancel begin =========="
echo
"========== # retrieve cancel begin =========="
req
=
'"method":"retrieve.CreateRawRetrieveCancelTx","params":[{"backupAddr":"1E
5saiXVb9mW8wcWUUZjsHJPZs5GmdzuSY","defaultAddr":"14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
"}]'
req
=
'"method":"retrieve.CreateRawRetrieveCancelTx","params":[{"backupAddr":"1E
DnnePAZN48aC2hiTDzhkczfF39g1pZZX","defaultAddr":"1PUiGcbsccfxW3zuvHXZBJfznziph5miAo
"}]'
tx
=
$(
curl
-ksd
"{
$req
}"
${
MAIN_HTTP
}
| jq
-r
".result"
)
tx
=
$(
curl
-ksd
"{
$req
}"
${
MAIN_HTTP
}
| jq
-r
".result"
)
reqDecode
=
'"method":"Chain33.DecodeRawTransaction","params":[{"txHex":"'
"
$tx
"
'"}]'
reqDecode
=
'"method":"Chain33.DecodeRawTransaction","params":[{"txHex":"'
"
$tx
"
'"}]'
...
@@ -132,7 +132,7 @@ retrieve_Cancel() {
...
@@ -132,7 +132,7 @@ retrieve_Cancel() {
[
"
$ok
"
==
true
]
[
"
$ok
"
==
true
]
echo_rst
"
$FUNCNAME
"
"
$?
"
echo_rst
"
$FUNCNAME
"
"
$?
"
signrawtx
"
$tx
"
"
CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944
"
signrawtx
"
$tx
"
"
56942AD84CCF4788ED6DACBC005A1D0C4F91B63BCF0C99A02BE03C8DEAE71138
"
echo
"========== # retrieve cancel end =========="
echo
"========== # retrieve cancel end =========="
block_wait 1
block_wait 1
...
@@ -143,7 +143,7 @@ retrieve_QueryResult() {
...
@@ -143,7 +143,7 @@ retrieve_QueryResult() {
local
status
=
$1
local
status
=
$1
req
=
'"method":"Chain33.Query","params":[{"execer":"retrieve","funcName":"GetRetrieveInfo","payload":{"backupAddress":"1E
5saiXVb9mW8wcWUUZjsHJPZs5GmdzuSY", "defaultAddress":"14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
"}}]'
req
=
'"method":"Chain33.Query","params":[{"execer":"retrieve","funcName":"GetRetrieveInfo","payload":{"backupAddress":"1E
DnnePAZN48aC2hiTDzhkczfF39g1pZZX", "defaultAddress":"1PUiGcbsccfxW3zuvHXZBJfznziph5miAo
"}}]'
data
=
$(
curl
-ksd
"{
$req
}"
${
MAIN_HTTP
}
| jq
-r
".result"
)
data
=
$(
curl
-ksd
"{
$req
}"
${
MAIN_HTTP
}
| jq
-r
".result"
)
ok
=
$(
jq
'(.status == '
"
$status
"
')'
<<<
"
$data
"
)
ok
=
$(
jq
'(.status == '
"
$status
"
')'
<<<
"
$data
"
)
...
...
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