Support validator withdrawals #19

Merged
roysc merged 11 commits from roysc/set-validator-creds into main 2024-08-05 14:06:43 +00:00
2 changed files with 12 additions and 0 deletions
Showing only changes of commit 7bd725c69f - Show all commits

View File

@ -44,6 +44,11 @@ lcli \
--interop-genesis-state \ --interop-genesis-state \
--force --force
# Patch the spec with settings not supported by lcli
sed -i "/^SHARD_COMMITTEE_PERIOD:/s/:.*/: $SHARD_COMMITTEE_PERIOD/" $TESTNET_DIR/config.yaml
sed -i "/^MIN_VALIDATOR_WITHDRAWABILITY_DELAY:/s/:.*/: $MIN_VALIDATOR_WITHDRAWABILITY_DELAY/" $TESTNET_DIR/config.yaml
sed -i "/^MAX_SEED_LOOKAHEAD:/s/:.*/: $MAX_SEED_LOOKAHEAD/" $TESTNET_DIR/config.yaml
echo Specification and genesis.ssz generated at $TESTNET_DIR. echo Specification and genesis.ssz generated at $TESTNET_DIR.
echo "Generating $VALIDATOR_COUNT validators concurrently... (this may take a while)" echo "Generating $VALIDATOR_COUNT validators concurrently... (this may take a while)"

View File

@ -38,6 +38,13 @@ SECONDS_PER_SLOT=${SECONDS_PER_SLOT:-3}
# Seconds per Eth1 block # Seconds per Eth1 block
SECONDS_PER_ETH1_BLOCK=${SECONDS_PER_ETH1_BLOCK:-1} SECONDS_PER_ETH1_BLOCK=${SECONDS_PER_ETH1_BLOCK:-1}
# Min epochs between validator activation and exit
SHARD_COMMITTEE_PERIOD=2
# Min epochs between validator exit and withdrawal
MIN_VALIDATOR_WITHDRAWABILITY_DELAY=1
# Delay for validator activation/exit
MAX_SEED_LOOKAHEAD=1
# Command line arguments for validator client # Command line arguments for validator client
VC_ARGS=${VC_ARGS:-""} VC_ARGS=${VC_ARGS:-""}