TMP: check in commands to run the validator and beacon chain node

This commit is contained in:
Alex Forshtat 2024-04-30 13:30:41 +02:00 committed by Dror Tirosh
parent 9da00cd8c0
commit 034f2653e0
9 changed files with 169 additions and 0 deletions

View file

@ -0,0 +1,5 @@
#!/bin/sh -e
rm ../genesis.ssz
../prysmctl testnet generate-genesis --fork capella --num-validators 64 --genesis-time-delay 600 --chain-config-file ../config.yml --geth-genesis-json-in ../genesis.json --geth-genesis-json-out ../genesis.json --output-ssz ../genesis.ssz

11
alexfdata/commands/2-geth.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh -e
rm -rf ../gethdata
../../build/bin/geth --datadir=../gethdata --password=../pwd account import ../secret.txt
../../build/bin/geth --datadir=../gethdata init ../genesis.json
echo "STARTING GETH"
../../build/bin/geth --http --http.port 8545 --http.api eth,net,web3 --ws --ws.api eth,net,web3 --authrpc.jwtsecret ../jwt.hex --datadir ../gethdata --nodiscover --syncmode full --allow-insecure-unlock --unlock 0x123463a4b065722e99115d6c222f267d9cabb524 --password ../pwd

5
alexfdata/commands/3-beacon.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh -e
rm -rf ../beacondata
../beacon_chain --datadir ../beacondata --min-sync-peers 0 --genesis-state ../genesis.ssz --bootstrap-node= --interop-eth1data-votes --chain-config-file ../config.yml --contract-deployment-block 0 --chain-id 32382 --accept-terms-of-use --jwt-secret ../jwt.hex --suggested-fee-recipient 0x123463a4B065722E99115D6c222f267d9cABb524 --minimum-peers-per-subnet 0 --enable-debug-rpc-endpoints --execution-endpoint ../gethdata/geth.ipc

View file

@ -0,0 +1,5 @@
#!/bin/sh -e
rm -rf ../validatordata
../validator --datadir ../validatordata --accept-terms-of-use --interop-num-validators 64 --chain-config-file ../config.yml

28
alexfdata/config.yml Normal file
View file

@ -0,0 +1,28 @@
CONFIG_NAME: interop
PRESET_BASE: interop
# Genesis
GENESIS_FORK_VERSION: 0x20000089
# Altair
ALTAIR_FORK_EPOCH: 0
ALTAIR_FORK_VERSION: 0x20000090
# Merge
BELLATRIX_FORK_EPOCH: 0
BELLATRIX_FORK_VERSION: 0x20000091
TERMINAL_TOTAL_DIFFICULTY: 0
# Capella
CAPELLA_FORK_EPOCH: 0
CAPELLA_FORK_VERSION: 0x20000092
MAX_WITHDRAWALS_PER_PAYLOAD: 16
DENEB_FORK_VERSION: 0x20000093
# Time parameters
SECONDS_PER_SLOT: 12
SLOTS_PER_EPOCH: 6
# Deposit contract
DEPOSIT_CONTRACT_ADDRESS: 0x4242424242424242424242424242424242424242

112
alexfdata/genesis.json Normal file

File diff suppressed because one or more lines are too long

1
alexfdata/jwt.hex Normal file
View file

@ -0,0 +1 @@
0xfad2709d0bb03bf0e8ba3c99bea194575d3e98863133d1af638ed056d1d59345

0
alexfdata/pwd Normal file
View file

2
alexfdata/secret.txt Normal file
View file

@ -0,0 +1,2 @@
2e0834786285daccd064ca17f1654f67b4aef298acbb82cef9ec422fb4975622