From b13300ca8120106a5a78adc2aa2bc36084217a39 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Fri, 13 Jan 2023 16:33:59 -0600 Subject: [PATCH] Add CERC_STATEDIFF_DB_LOG_STATEMENTS=true|false option. (#120) --- app/data/config/fixturenet-eth/fixturenet-eth.env | 1 + app/data/container-build/cerc-fixturenet-eth-geth/run-el.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/data/config/fixturenet-eth/fixturenet-eth.env b/app/data/config/fixturenet-eth/fixturenet-eth.env index 10d6c94c..20a9fc05 100644 --- a/app/data/config/fixturenet-eth/fixturenet-eth.env +++ b/app/data/config/fixturenet-eth/fixturenet-eth.env @@ -18,3 +18,4 @@ CERC_STATEDIFF_DB_NAME="cerc_testing" CERC_STATEDIFF_DB_USER="vdbm" CERC_STATEDIFF_DB_PASSWORD="password" CERC_STATEDIFF_DB_GOOSE_MIN_VER=23 +CERC_STATEDIFF_DB_LOG_STATEMENTS="false" diff --git a/app/data/container-build/cerc-fixturenet-eth-geth/run-el.sh b/app/data/container-build/cerc-fixturenet-eth-geth/run-el.sh index c2f2364c..01672c39 100755 --- a/app/data/container-build/cerc-fixturenet-eth-geth/run-el.sh +++ b/app/data/container-build/cerc-fixturenet-eth-geth/run-el.sh @@ -61,6 +61,7 @@ else --statediff.db.password=$CERC_STATEDIFF_DB_PASSWORD \ --statediff.db.port=$CERC_STATEDIFF_DB_PORT \ --statediff.db.user=$CERC_STATEDIFF_DB_USER \ + --statediff.db.logstatements=${CERC_STATEDIFF_DB_LOG_STATEMENTS:-false} \ --statediff.waitforsync=true \ --statediff.writing=true" fi @@ -86,6 +87,6 @@ else --miner.threads=1 \ --metrics \ --verbosity=${CERC_GETH_VERBOSITY:-3} \ - --vmodule="${CERC_GETH_VMODULE:-statediff/*=6}" \ + --vmodule="${CERC_GETH_VMODULE:-statediff/*=5}" \ --miner.etherbase="${ETHERBASE}" ${STATEDIFF_OPTS} fi