From e65c1f49ce19169b7e5e0c7ff1feb7f4c3a09b77 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 17 Jun 2020 19:12:42 +0300 Subject: [PATCH] Allow Ganache to bundle more deposits in a single block --- tests/simulation/start.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/simulation/start.sh b/tests/simulation/start.sh index d8e818cd0..cd8f60755 100755 --- a/tests/simulation/start.sh +++ b/tests/simulation/start.sh @@ -53,6 +53,7 @@ CUSTOM_NIMFLAGS="${NIMFLAGS} -d:useSysAsserts -d:chronicles_sinks:textlines,json # Run with "SLOTS_PER_EPOCH=8 ./start.sh" to change these DEFS="" +DEFS+="-d:MIN_GENESIS_ACTIVE_VALIDATOR_COUNT=${NUM_VALIDATORS} " DEFS+="-d:MAX_COMMITTEES_PER_SLOT=${MAX_COMMITTEES_PER_SLOT:-1} " # Spec default: 64 DEFS+="-d:SLOTS_PER_EPOCH=${SLOTS_PER_EPOCH:-6} " # Spec default: 32 DEFS+="-d:SECONDS_PER_SLOT=${SECONDS_PER_SLOT:-6} " # Spec default: 12 @@ -74,7 +75,7 @@ COMMANDS=() if [[ "$USE_GANACHE" == "yes" ]]; then if [[ "$USE_TMUX" == "yes" ]]; then - $TMUX_CMD new-window -d -t $TMUX_SESSION_NAME -n "$GANACHE_CMD" "$GANACHE_CMD -e 100000" + $TMUX_CMD new-window -d -t $TMUX_SESSION_NAME -n "$GANACHE_CMD" "$GANACHE_CMD --blockTime 5 --gasLimit 100000000 -e 100000" else echo NOTICE: $GANACHE_CMD will be started automatically only with USE_TMUX=1 USE_GANACHE="no" @@ -167,7 +168,7 @@ if [ "$USE_GANACHE" != "no" ]; then run_cmd "(deposit maker)" "$BEACON_NODE_BIN deposits send \ --non-interactive \ --deposits-dir='$VALIDATORS_DIR' \ - --min-delay=1 --max-delay=5 \ + --min-delay=0 --max-delay=1 \ $WEB3_ARG \ --deposit-contract=${DEPOSIT_CONTRACT_ADDRESS}" fi