Commit 066a7c3e authored by vipwzw's avatar vipwzw

auto ci

parent 0e7f94cd
......@@ -12,7 +12,6 @@ RED='\033[1;31m'
GRE='\033[1;32m'
NOC='\033[0m'
echo_rst() {
if [ "$2" == true ]; then
echo -e "${GRE}$1 ok${NOC}"
......@@ -34,8 +33,6 @@ privacy_CreateRawTransaction() {
echo_rst "$FUNCNAME" "$ok"
}
privacy_GetPrivacyTxByAddr() {
local ip=$1
......@@ -48,7 +45,6 @@ privacy_GetPrivacyTxByAddr() {
echo_rst "$FUNCNAME" "$ok"
}
privacy_ShowPrivacyKey() {
local ip=$1
......@@ -85,7 +81,6 @@ privacy_ShowPrivacyAccountSpend() {
echo_rst "$FUNCNAME" "$ok"
}
privacy_RescanUtxos() {
local ip=$1
......@@ -105,11 +100,10 @@ privacy_EnablePrivacy() {
echo "#request: $req"
resp=$(curl -ksd "{$req}" "$ip")
echo "#response: $resp"
ok=$(jq '(.error|not) and .result.results[0].IsOK' <<< "$resp")
ok=$(jq '(.error|not) and .result.results[0].IsOK' <<<"$resp")
echo_rst "$FUNCNAME" "$ok"
}
function run_test() {
local ip=$1
privacy_EnablePrivacy "$ip"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment