Commit d8258991 authored by heyubin's avatar heyubin Committed by vipwzw

add by hyb for issues462-1

parent 0e62d965
......@@ -158,7 +158,7 @@ function miner() {
#fi
echo "=========== # save seed to wallet ============="
result=$(${1} seed save -p 1314 -s "tortoise main civil member grace happy century convince father cage beach hip maid merry rib" | jq ".isok")
result=$(${1} seed save -p 1314fuzamei -s "tortoise main civil member grace happy century convince father cage beach hip maid merry rib" | jq ".isok")
if [ "${result}" = "false" ]; then
echo "save seed to wallet error seed, result: ${result}"
exit 1
......@@ -167,7 +167,7 @@ function miner() {
sleep 1
echo "=========== # unlock wallet ============="
result=$(${1} wallet unlock -p 1314 -t 0 | jq ".isok")
result=$(${1} wallet unlock -p 1314fuzamei -t 0 | jq ".isok")
if [ "${result}" = "false" ]; then
exit 1
fi
......
......@@ -132,7 +132,7 @@ function start() {
#fi
echo "=========== # save seed to wallet ============="
result=$(${CLI} seed save -p 1314 -s "tortoise main civil member grace happy century convince father cage beach hip maid merry rib" | jq ".isok")
result=$(${CLI} seed save -p 1314fuzamei -s "tortoise main civil member grace happy century convince father cage beach hip maid merry rib" | jq ".isok")
if [ "${result}" = "false" ]; then
echo "save seed to wallet error seed, result: ${result}"
exit 1
......@@ -141,7 +141,7 @@ function start() {
sleep 1
echo "=========== # unlock wallet ============="
result=$(${CLI} wallet unlock -p 1314 -t 0 | jq ".isok")
result=$(${CLI} wallet unlock -p 1314fuzamei -t 0 | jq ".isok")
if [ "${result}" = "false" ]; then
exit 1
fi
......@@ -173,7 +173,7 @@ function start() {
## 2nd mining
echo "=========== # save seed to wallet ============="
result=$(${CLI4} seed save -p 1314 -s "tortoise main civil member grace happy century convince father cage beach hip maid merry rib" | jq ".isok")
result=$(${CLI4} seed save -p 1314fuzamei -s "tortoise main civil member grace happy century convince father cage beach hip maid merry rib" | jq ".isok")
if [ "${result}" = "false" ]; then
echo "save seed to wallet error seed, result: ${result}"
exit 1
......@@ -182,7 +182,7 @@ function start() {
sleep 1
echo "=========== # unlock wallet ============="
result=$(${CLI4} wallet unlock -p 1314 -t 0 | jq ".isok")
result=$(${CLI4} wallet unlock -p 1314fuzamei -t 0 | jq ".isok")
if [ "${result}" = "false" ]; then
exit 1
fi
......@@ -444,7 +444,7 @@ function optDockerPart3() {
echo "======sleep 20s======"
sleep 5
result=$($CLI4 wallet unlock -p 1314 -t 0 | jq ".isok")
result=$($CLI4 wallet unlock -p 1314fuzamei -t 0 | jq ".isok")
if [ "${result}" = "false" ]; then
echo "wallet1 unlock fail"
exit 1
......@@ -494,7 +494,7 @@ function optDockerPart4() {
echo "======sleep 20s======"
sleep 5
result=$($CLI wallet unlock -p 1314 -t 0 | jq ".isok")
result=$($CLI wallet unlock -p 1314fuzamei -t 0 | jq ".isok")
if [ "${result}" = "false" ]; then
echo "wallet2 unlock fail"
exit 1
......@@ -618,7 +618,7 @@ function type2_optDockerPart3() {
sleep 20
echo "======开启第二组docker节点挖矿======"
result=$($CLI wallet unlock -p 1314 -t 0 | jq ".isok")
result=$($CLI wallet unlock -p 1314fuzamei -t 0 | jq ".isok")
if [ "${result}" = "false" ]; then
echo "wallet1 unlock fail"
exit 1
......@@ -632,7 +632,7 @@ function type2_optDockerPart3() {
fi
sleep 1
result=$($CLI4 wallet unlock -p 1314 -t 0 | jq ".isok")
result=$($CLI4 wallet unlock -p 1314fuzamei -t 0 | jq ".isok")
if [ "${result}" = "false" ]; then
echo "wallet2 unlock fail"
exit 1
......
......@@ -35,9 +35,9 @@ Flags:
测试步骤:
第一步:创建钱包
cli seed save -p heyubin -s "voice leisure mechanic tape cluster grunt receive joke nurse between monkey lunch save useful cruise"
cli seed save -p heyubin1234 -s "voice leisure mechanic tape cluster grunt receive joke nurse between monkey lunch save useful cruise"
cli wallet unlock -p heyubin
cli wallet unlock -p heyubin1234
cli account import_key -l miner -k CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944
......
......@@ -57,9 +57,9 @@ Available Commands:
测试步骤如下:
cli seed save -p heyubin -s "voice leisure mechanic tape cluster grunt receive joke nurse between monkey lunch save useful cruise"
cli seed save -p heyubin1234 -s "voice leisure mechanic tape cluster grunt receive joke nurse between monkey lunch save useful cruise"
cli wallet unlock -p heyubin
cli wallet unlock -p heyubin1234
cli account import_key -l miner -k CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944
......
......@@ -54,14 +54,14 @@ function para_set_wallet() {
function para_import_key() {
echo "=========== # save seed to wallet ============="
result=$(${1} seed save -p 1314 -s "tortoise main civil member grace happy century convince father cage beach hip maid merry rib" | jq ".isok")
result=$(${1} seed save -p 1314fuzamei -s "tortoise main civil member grace happy century convince father cage beach hip maid merry rib" | jq ".isok")
if [ "${result}" = "false" ]; then
echo "save seed to wallet error seed, result: ${result}"
exit 1
fi
echo "=========== # unlock wallet ============="
result=$(${1} wallet unlock -p 1314 -t 0 | jq ".isok")
result=$(${1} wallet unlock -p 1314fuzamei -t 0 | jq ".isok")
if [ "${result}" = "false" ]; then
exit 1
fi
......
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