Working post bellatrix local testnet

This commit is contained in:
Pawan Dhananjay
2022-12-02 19:50:43 +05:30
parent df3615664e
commit e72d9fb922
12 changed files with 932 additions and 41 deletions

View File

@@ -13,11 +13,6 @@ set -o nounset -o errexit -o pipefail
source ./vars.env
# lcli \
# deploy-deposit-contract \
# --eth1-http http://localhost:8545 \
# --confirmations 1 \
# --validator-count $VALIDATOR_COUNT
NOW=`date +%s`
GENESIS_TIME=`expr $NOW + $GENESIS_DELAY`
@@ -32,10 +27,11 @@ lcli \
--genesis-delay $GENESIS_DELAY \
--genesis-fork-version $GENESIS_FORK_VERSION \
--altair-fork-epoch $ALTAIR_FORK_EPOCH \
--bellatrix-fork-epoch $ALTAIR_FORK_EPOCH \
--capella-fork-epoch $ALTAIR_FORK_EPOCH \
--eip4844-fork-epoch $ALTAIR_FORK_EPOCH \
--eth1-block-hash 0000000000000000000000000000000000000000000000000000000000000000 \
--bellatrix-fork-epoch $BELLATRIX_FORK_EPOCH \
--capella-fork-epoch $CAPELLA_FORK_EPOCH \
--eip4844-fork-epoch $EIP4844_FORK_EPOCH \
--ttd $TTD \
--eth1-block-hash $ETH1_BLOCK_HASH \
--eth1-id $CHAIN_ID \
--eth1-follow-distance 1 \
--seconds-per-slot $SECONDS_PER_SLOT \
@@ -44,7 +40,7 @@ lcli \
--interop-genesis-state \
--force
echo Specification generated at $TESTNET_DIR.
echo Specification and genesis.ssz generated at $TESTNET_DIR.
echo "Generating $VALIDATOR_COUNT validators concurrently... (this may take a while)"
lcli \
@@ -54,13 +50,3 @@ lcli \
--node-count $BN_COUNT
echo Validators generated with keystore passwords at $DATADIR.
echo "Building genesis state... (this might take a while)"
lcli \
interop-genesis \
--spec $SPEC_PRESET \
--genesis-time $GENESIS_TIME \
--testnet-dir $TESTNET_DIR \
$GENESIS_VALIDATOR_COUNT
echo Created genesis state in $TESTNET_DIR