try to add lukso to the mix

This commit is contained in:
Sebastian
2023-08-12 13:00:22 +02:00
parent b43fed1d39
commit 12a64b10ee
16 changed files with 1029984 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
#!/bin/sh
# exit script on any error
set -e
# Set Bor Home Directory
ERIGON_HOME=/datadir
if [ "${BOOTSTRAP}" == 1 ] && [ -n "${SNAPSHOT_URL}" ] && [ ! -f "${ERIGON_HOME}/bootstrapped" ];
then
echo "downloading snapshot from ${SNAPSHOT_URL}"
mkdir -p ${ERIGON_HOME:-/datadir}
wget --tries=0 -O - "${SNAPSHOT_URL}" | tar -xz -C ${ERIGON_HOME:-/datadir} && touch ${ERIGON_HOME:-/datadir}/bootstrapped
fi
READY=$(curl -s ${HEIMDALLD:-http://heimdalld:26657}/status | jq '.result.sync_info.catching_up')
while [[ "${READY}" != "false" ]];
do
echo "Waiting for heimdalld to catch up."
sleep 30
READY=$(curl -s ${HEIMDALLD:-http://heimdalld:26657}/status | jq '.result.sync_info.catching_up')
done
# add snap.keepblocks=true as mentioned on https://snapshot.polygon.technology/
# add rpc.returndata.limit=1000000 to unstuck subgraphs due to "call retuned result on length 104704 exceeding limit 100000"
exec erigon \
--chain=bor-mainnet \
--bor.heimdall=${HEIMDALLR:-http://heimdallr:1317} \
--datadir=${ERIGON_HOME} \
--http --http.addr="0.0.0.0" --http.port="8545" --http.compression --http.vhosts="*" --http.corsdomain="*" --http.api="eth,debug,net,trace,web3,erigon,bor" \
--ws --ws.compression \
--port=27113 \
--snap.keepblocks=true \
--rpc.returndata.limit=1000000 \
--snapshots="true" \
--torrent.upload.rate="1250mb" --torrent.download.rate="1250mb" \
--metrics --metrics.addr=0.0.0.0 --metrics.port=6060 \
--pprof --pprof.addr=0.0.0.0 --pprof.port=6061

105
lukso/shared/config.yaml Normal file
View File

@@ -0,0 +1,105 @@
# LUKSO config
# Extends the mainnet preset
PRESET_BASE: 'mainnet'
# Free-form short name of the network that this configuration applies to
# Must match the regex: [a-z0-9\-]
CONFIG_NAME: 'lukso'
# Genesis
# ---------------------------------------------------------------
# Min Genesis Validators in Genesis state
MIN_GENESIS_ACTIVE_VALIDATOR_COUNT: 4096
# Min Genesis Time: Tuesday, 23 May 2023 15:40:00 GMT
MIN_GENESIS_TIME: 1684856400
# 2400 seconds (40 Min)
GENESIS_DELAY: 2400
# Final Network start time: 1684856400 + 2400 = 1684858800
# Tuesday, 23 May 2023 16:20:00 GMT (4:20pm UTC)
# Transition
# ---------------------------------------------------------------
# Configs are present in case a need arose to manually select a particular proof of work fork to follow in case of trouble
# The total (cumulative) difficulty threshold required of the final block mined in Ethereum
TERMINAL_TOTAL_DIFFICULTY: 0
# Designates the hash of the terminal PoW block if set
TERMINAL_BLOCK_HASH: 0x0000000000000000000000000000000000000000000000000000000000000000
# Specifies the terminal block hash epoch to manual
TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH: 1
# Deposit contract and execution chain IDs
# ---------------------------------------------------------------
DEPOSIT_CHAIN_ID: 42
DEPOSIT_NETWORK_ID: 42
DEPOSIT_CONTRACT_ADDRESS: 0xcafe00000000000000000000000000000000cafe
# Forks
# ---------------------------------------------------------------
# Some forks are disabled for now:
# - These may be re-assigned to another fork-version later
# - Temporarily set to max uint64 value: 2**64 - 1
# Gensis fork
GENESIS_FORK_VERSION: 0x42000001
# Altair
ALTAIR_FORK_VERSION: 0x42000002
ALTAIR_FORK_EPOCH: 0
# Belatrix
BELLATRIX_FORK_VERSION: 0x42000003
BELLATRIX_FORK_EPOCH: 0
# Capella
# 1 epoch = 384 seconds
# Epoch to seconds: 32 * 12 * 8100 = 3110400
# Shanghai time: 3110400 + 1684858800 - 2 = 1687969198
# Capella fork: Wednesday, 28 June 2023 16:20:00 GMT
CAPELLA_FORK_VERSION: 0x42000004
CAPELLA_FORK_EPOCH: 8100
# Fork choice
# ---------------------------------------------------------------
# 40%
PROPOSER_SCORE_BOOST: 40
# Time parameters
# ---------------------------------------------------------------
# 12 seconds
SECONDS_PER_SLOT: 12
# 2**5 (= 32) slots 6.4 minutes
SLOTS_PER_EPOCH: 32
# 14 (estimate from Eth1 mainnet)
SECONDS_PER_ETH1_BLOCK: 12
# 2**8 (= 256) epochs ~27 hours
MIN_VALIDATOR_WITHDRAWABILITY_DELAY: 256
# 2**8 (= 256) epochs ~27 hours
SHARD_COMMITTEE_PERIOD: 256
# 2**11 (= 2,048) Eth1 blocks ~8 hours
ETH1_FOLLOW_DISTANCE: 2048
# Sync committee
# ---------------------------------------------------------------
# 2**9 (= 512)
SYNC_COMMITTEE_SIZE: 512
# 2**8 (= 256)
EPOCHS_PER_SYNC_COMMITTEE_PERIOD: 256
# Validator cycle
# ---------------------------------------------------------------
# 2**2 (= 4)
INACTIVITY_SCORE_BIAS: 4
# 2**4 (= 16)
INACTIVITY_SCORE_RECOVERY_RATE: 16
# 2**2 (= 4)
MIN_PER_EPOCH_CHURN_LIMIT: 4
# 2**16 (= 65,536)
CHURN_LIMIT_QUOTIENT: 65536
# Validator Stakes
# ---------------------------------------------------------------
# 2**5 * 10**9 (= 32,000,000,000) Gwei
MAX_EFFECTIVE_BALANCE: 32000000000
# 2**4 * 10**9 (= 16,000,000,000) Gwei
EJECTION_BALANCE: 16000000000

843
lukso/shared/genesis.json Normal file

File diff suppressed because one or more lines are too long

BIN
lukso/shared/genesis.ssz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

BIN
lukso/shared/genesis_35.ssz Normal file

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

BIN
lukso/shared/genesis_42.ssz Normal file

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

235922
lukso/shared/genesis_ssz.json Normal file

File diff suppressed because it is too large Load Diff