Commit 05b762d6 authored by QM's avatar QM

updata

parent 8067cdb6
...@@ -43,6 +43,7 @@ function kill_ebrelayerD() { ...@@ -43,6 +43,7 @@ function kill_ebrelayerD() {
function start_ebrelayerC() { function start_ebrelayerC() {
docker start "${dockerNamePrefix}_ebrelayerc_1" docker start "${dockerNamePrefix}_ebrelayerc_1"
sleep 5
${CLIC} relayer unlock -p 123456hzj ${CLIC} relayer unlock -p 123456hzj
sleep 5 sleep 5
eth_block_wait $((maturityDegree + 2)) "${ethUrl}" eth_block_wait $((maturityDegree + 2)) "${ethUrl}"
...@@ -50,6 +51,7 @@ function start_ebrelayerC() { ...@@ -50,6 +51,7 @@ function start_ebrelayerC() {
} }
function start_ebrelayerD() { function start_ebrelayerD() {
docker start "${dockerNamePrefix}_ebrelayerd_1" docker start "${dockerNamePrefix}_ebrelayerd_1"
sleep 5
${CLID} relayer unlock -p 123456hzj ${CLID} relayer unlock -p 123456hzj
sleep 5 sleep 5
eth_block_wait $((maturityDegree + 2)) "${ethUrl}" eth_block_wait $((maturityDegree + 2)) "${ethUrl}"
...@@ -75,7 +77,7 @@ function port_exist() { ...@@ -75,7 +77,7 @@ function port_exist() {
grep_port=$(netstat -tlpn | grep "\b${portRelayer}\b") grep_port=$(netstat -tlpn | grep "\b${portRelayer}\b")
while [ -n "$grep_port" ]; do while [ -n "$grep_port" ]; do
echo "port $portRelayer is in use" echo "port $portRelayer is in use"
portRelayer=$((portRelayer - 4)) portRelayer=$((portRelayer + 4))
grep_port=$(netstat -tlpn | grep "\b${portRelayer}\b") grep_port=$(netstat -tlpn | grep "\b${portRelayer}\b")
done done
......
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