Fix docker prover script
@@ -7,24 +7,24 @@ export ZKSYNC_HOME="/"
PROVER_NAME=`hostname`
echo PROVER_NAME=$PROVER_NAME
-echo SUPPORTED_BLOCK_CHUNKS_SIZES=$SUPPORTED_BLOCK_CHUNKS_SIZES
-echo SUPPORTED_BLOCK_CHUNKS_SIZES_SETUP_POWERS=$SUPPORTED_BLOCK_CHUNKS_SIZES_SETUP_POWERS
-echo BLOCK_CHUNK_SIZES=$BLOCK_CHUNK_SIZES
+echo CHAIN_CIRCUIT_SUPPORTED_BLOCK_CHUNKS_SIZES=$CHAIN_CIRCUIT_SUPPORTED_BLOCK_CHUNKS_SIZES
+echo CHAIN_CIRCUIT_SUPPORTED_BLOCK_CHUNKS_SIZES_SETUP_POWERS=$CHAIN_CIRCUIT_SUPPORTED_BLOCK_CHUNKS_SIZES_SETUP_POWERS
+echo CHAIN_STATE_KEEPER_BLOCK_CHUNK_SIZES=$CHAIN_STATE_KEEPER_BLOCK_CHUNK_SIZES
-if [ "$DOCKER_DUMMY_PROVER" == "true" ]; then
+if [ "$MISC_DOCKER_DUMMY_PROVER" == "true" ]; then
echo "Starting dummy_prover"
exec dummy_prover "$PROVER_NAME" 2>&1
fi
-# Returns required plonk setup powers based on `BLOCK_CHUNK_SIZES` used in the environment configuration
+# Returns required plonk setup powers based on `CHAIN_STATE_KEEPER_BLOCK_CHUNK_SIZES` used in the environment configuration
function get_required_plonk_setup_powers() {
- local SUP_CHUNKS_ARR=($(echo $SUPPORTED_BLOCK_CHUNKS_SIZES | tr ',' "\n"))
- local SUP_CHUNKS_POW=($(echo $SUPPORTED_BLOCK_CHUNKS_SIZES_SETUP_POWERS | tr ',' "\n"))
+ local SUP_CHUNKS_ARR=($(echo $CHAIN_CIRCUIT_SUPPORTED_BLOCK_CHUNKS_SIZES | tr ',' "\n"))
+ local SUP_CHUNKS_POW=($(echo $CHAIN_CIRCUIT_SUPPORTED_BLOCK_CHUNKS_SIZES_SETUP_POWERS | tr ',' "\n"))
local REQUIRED_SETUP_POWS=""
for index in ${!SUP_CHUNKS_ARR[*]}; do
- for my_size in ${BLOCK_CHUNK_SIZES//,/ }; do
+ for my_size in ${CHAIN_STATE_KEEPER_BLOCK_CHUNK_SIZES//,/ }; do
if [ "$my_size" == "${SUP_CHUNKS_ARR[$index]}" ]; then
REQUIRED_SETUP_POWS="$REQUIRED_SETUP_POWS${SUP_CHUNKS_POW[$index]},"
fi
@@ -33,7 +33,7 @@ function get_required_plonk_setup_powers() {
echo $REQUIRED_SETUP_POWS
}
-# we download only keys used in node (defined by $BLOCK_CHUNK_SIZES)
+# we download only keys used in node (defined by $CHAIN_STATE_KEEPER_BLOCK_CHUNK_SIZES)
REQUIRED_SETUP_POWS=`get_required_plonk_setup_powers`
if [ "$PROVER_DOWNLOAD_SETUP" == "false" ]; then
@@ -51,7 +51,7 @@ if [ "$PROVER_DOWNLOAD_SETUP" == "false" ]; then
echo Setup is downloaded
fi
-VERIFY_KEYS_TARBAL="verify-keys-`basename $KEY_DIR`-account-"$ACCOUNT_TREE_DEPTH"_-balance-$BALANCE_TREE_DEPTH.tar.gz"
+VERIFY_KEYS_TARBAL="verify-keys-`basename $KEY_DIR`-account-"$CHAIN_CIRCUIT_ACCOUNT_TREE_DEPTH"_-balance-$BALANCE_TREE_DEPTH.tar.gz"
# checks if keys are present and if so, unpacks them
[ -f keys/packed/$VERIFY_KEYS_TARBAL ] || (echo Keys file $VERIFY_KEYS_TARBAL not found && exit 1)
