diff --git a/docker/common/start.sh b/docker/common/start.sh index b0f81df8..759c9b96 100755 --- a/docker/common/start.sh +++ b/docker/common/start.sh @@ -52,23 +52,25 @@ while ! [[ -S ${OASIS_NODE_SOCKET} ]]; do sleep 1; done ${OASIS_WEB3_GATEWAY} --config ${OASIS_WEB3_GATEWAY_CONFIG_FILE} 2>1 &>/var/log/oasis-web3-gateway.log & OASIS_WEB3_GATEWAY_PID=$! +echo -n " * Bootstrapping network (this might take a minute)" if [[ ${SAPPHIRE_BACKEND} == 'mock' ]]; then - echo -n " * Bootstrapping network (this might take a minute)" - echo -n . ${OASIS_NODE} debug control wait-nodes -n 2 -a unix:${OASIS_NODE_SOCKET} echo -n . ${OASIS_NODE} debug control set-epoch --epoch 1 -a unix:${OASIS_NODE_SOCKET} - echo . + echo -n . ${OASIS_NODE} debug control set-epoch --epoch 2 -a unix:${OASIS_NODE_SOCKET} -else - echo " * Bootstrapping network (this might take a minute)" - # Wait for compute nodes before initiating deposit. - ${OASIS_NODE} debug control wait-ready -a unix:${OASIS_NODE_SOCKET} + + echo -n . + ${OASIS_NODE} debug control set-epoch --epoch 3 -a unix:${OASIS_NODE_SOCKET} fi +# Wait for compute nodes before initiating deposit. +echo +${OASIS_NODE} debug control wait-ready -a unix:${OASIS_NODE_SOCKET} + echo " * Populating accounts" echo "" ${OASIS_DEPOSIT} -sock unix:${OASIS_NODE_SOCKET} "$@"