add trusted setup, query different version of EL endpoint at each fork

This commit is contained in:
realbigsean
2022-12-07 12:01:21 -05:00
parent 2704955b2e
commit e5f26516bd
11 changed files with 4325 additions and 46 deletions

View File

@@ -62,4 +62,5 @@ exec $lighthouse_binary \
--disable-packet-filter \
--target-peers $((BN_COUNT - 1)) \
--execution-endpoint $execution_endpoint \
--trusted-setup-file ./trusted_setup.txt \
--execution-jwt $execution_jwt

View File

@@ -12,8 +12,8 @@
"berlinBlock": 0,
"londonBlock": 0,
"mergeNetsplitBlock": 0,
"shanghaiBlock": 0,
"shardingForkBlock": 32,
"shanghaiTime": 1670428733,
"shardingForkTime": 1670428829,
"terminalTotalDifficulty": 0
},
"alloc": {

View File

@@ -50,3 +50,10 @@ lcli \
--node-count $BN_COUNT
echo Validators generated with keystore passwords at $DATADIR.
GENESIS_TIME=$(lcli pretty-ssz state_merge ~/.lighthouse/local-testnet/testnet/genesis.ssz | jq | grep -Po 'genesis_time": "\K.*\d')
CAPELLA_TIME=$((GENESIS_TIME + (CAPELLA_FORK_EPOCH * 32 * SECONDS_PER_SLOT)))
EIP4844_TIME=$((GENESIS_TIME + (EIP4844_FORK_EPOCH * 32 * SECONDS_PER_SLOT)))
sed -i 's/"shanghaiTime".*$/"shanghaiTime": '"$CAPELLA_TIME"',/g' genesis.json
sed -i 's/"shardingForkTime".*$/"shardingForkTime": '"$EIP4844_TIME"',/g' genesis.json

File diff suppressed because it is too large Load Diff

View File

@@ -37,8 +37,8 @@ CHAIN_ID=4242
# Hard fork configuration
ALTAIR_FORK_EPOCH=0
BELLATRIX_FORK_EPOCH=0
CAPELLA_FORK_EPOCH=0
EIP4844_FORK_EPOCH=1
CAPELLA_FORK_EPOCH=1
EIP4844_FORK_EPOCH=2
TTD=0