Allow Ganache to bundle more deposits in a single block
This commit is contained in:
parent
ffb613d3c6
commit
e65c1f49ce
|
@ -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
|
# Run with "SLOTS_PER_EPOCH=8 ./start.sh" to change these
|
||||||
DEFS=""
|
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: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:SLOTS_PER_EPOCH=${SLOTS_PER_EPOCH:-6} " # Spec default: 32
|
||||||
DEFS+="-d:SECONDS_PER_SLOT=${SECONDS_PER_SLOT:-6} " # Spec default: 12
|
DEFS+="-d:SECONDS_PER_SLOT=${SECONDS_PER_SLOT:-6} " # Spec default: 12
|
||||||
|
@ -74,7 +75,7 @@ COMMANDS=()
|
||||||
|
|
||||||
if [[ "$USE_GANACHE" == "yes" ]]; then
|
if [[ "$USE_GANACHE" == "yes" ]]; then
|
||||||
if [[ "$USE_TMUX" == "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
|
else
|
||||||
echo NOTICE: $GANACHE_CMD will be started automatically only with USE_TMUX=1
|
echo NOTICE: $GANACHE_CMD will be started automatically only with USE_TMUX=1
|
||||||
USE_GANACHE="no"
|
USE_GANACHE="no"
|
||||||
|
@ -167,7 +168,7 @@ if [ "$USE_GANACHE" != "no" ]; then
|
||||||
run_cmd "(deposit maker)" "$BEACON_NODE_BIN deposits send \
|
run_cmd "(deposit maker)" "$BEACON_NODE_BIN deposits send \
|
||||||
--non-interactive \
|
--non-interactive \
|
||||||
--deposits-dir='$VALIDATORS_DIR' \
|
--deposits-dir='$VALIDATORS_DIR' \
|
||||||
--min-delay=1 --max-delay=5 \
|
--min-delay=0 --max-delay=1 \
|
||||||
$WEB3_ARG \
|
$WEB3_ARG \
|
||||||
--deposit-contract=${DEPOSIT_CONTRACT_ADDRESS}"
|
--deposit-contract=${DEPOSIT_CONTRACT_ADDRESS}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue