Skip to content

Commit

Permalink
Allow configuring the number of statediff workers. (#422)
Browse files Browse the repository at this point in the history
* Allow configuring the number of statediff workers.

* Leave logging alone
  • Loading branch information
telackey authored Jun 5, 2023
1 parent f1a626d commit a8e198a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/data/config/fixturenet-eth/fixturenet-eth.env
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ CERC_STATEDIFF_DB_PORT=5432
CERC_STATEDIFF_DB_NAME="cerc_testing"
CERC_STATEDIFF_DB_USER="vdbm"
CERC_STATEDIFF_DB_PASSWORD="password"
CERC_STATEDIFF_DB_GOOSE_MIN_VER=${CERC_STATEDIFF_DB_GOOSE_MIN_VER:-23}
CERC_STATEDIFF_DB_GOOSE_MIN_VER=${CERC_STATEDIFF_DB_GOOSE_MIN_VER:-18}
CERC_STATEDIFF_DB_LOG_STATEMENTS="false"
CERC_STATEDIFF_WORKERS=2

CERC_GETH_VMODULE="statediff/*=5,rpc/*=5"
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ else
--statediff.db.logstatements=${CERC_STATEDIFF_DB_LOG_STATEMENTS:-false} \
--statediff.db.copyfrom=${CERC_STATEDIFF_DB_COPY_FROM:-true} \
--statediff.waitforsync=true \
--statediff.workers=${CERC_STATEDIFF_WORKERS:-1} \
--statediff.writing=true"
fi

Expand Down

0 comments on commit a8e198a

Please sign in to comment.