try to add lukso to the mix
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
erigon-lukso:
|
||||
image: thorax/erigon:v2.48.1
|
||||
expose:
|
||||
- "51262"
|
||||
- "9090"
|
||||
- "8545"
|
||||
- "8551"
|
||||
ports:
|
||||
- "51262:51262"
|
||||
- "51262:51262/udp"
|
||||
volumes:
|
||||
- erigon-lukso:/home/erigon/.local/share/erigon
|
||||
- .jwtsecret:/jwtsecret
|
||||
networks:
|
||||
- chains
|
||||
command: >
|
||||
--chain=mainnet
|
||||
--networkid=42
|
||||
--miner.gaslimit=42000000
|
||||
--snapshots=false
|
||||
--bootnodes enode://c2bb19ce658cfdf1fecb45da599ee6c7bf36e5292efb3fb61303a0b2cd07f96c20ac9b376a464d687ac456675a2e4a44aec39a0509bcb4b6d8221eedec25aca2@34.147.73.193:30303 enode://276f14e4049840a0f5aa5e568b772ab6639251149a52ba244647277175b83f47b135f3b3d8d846cf81a8e681684e37e9fc10ec205a9841d3ae219aa08aa9717b@34.32.192.211:30303
|
||||
--port=51262
|
||||
--metrics --metrics.addr=0.0.0.0 --metrics.port=6060
|
||||
--private.api.addr=0.0.0.0:9090
|
||||
--pprof
|
||||
--pprof.addr=0.0.0.0
|
||||
--pprof.port=6061
|
||||
--authrpc.addr=0.0.0.0
|
||||
--authrpc.vhosts=*
|
||||
--authrpc.jwtsecret=/jwtsecret
|
||||
--http.addr=0.0.0.0
|
||||
--http.vhosts=*
|
||||
--http.corsdomain=*
|
||||
--http.api=eth,erigon,web3,net,debug,trace,txpool
|
||||
--rpc.returndata.limit=1000000
|
||||
--rpc.gascap=5000000000
|
||||
--ws
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 1m
|
||||
labels:
|
||||
- "prometheus-scrape.enabled=true"
|
||||
- "prometheus-scrape.port=6060"
|
||||
- "prometheus-scrape.job_name=erigon"
|
||||
- "prometheus-scrape.metrics_path=/debug/metrics/prometheus"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.middlewares.erigon-lukso-stripprefix.stripprefix.prefixes=/lukso"
|
||||
- "traefik.http.services.erigon-lukso.loadbalancer.server.port=8545"
|
||||
- "traefik.http.routers.erigon-lukso.entrypoints=websecure"
|
||||
- "traefik.http.routers.erigon-lukso.tls.certresolver=myresolver"
|
||||
- "traefik.http.routers.erigon-lukso.rule=Host(`$DOMAIN`) && PathPrefix(`/lukso`)"
|
||||
- "traefik.http.routers.erigon-lukso.middlewares=erigon-lukso-stripprefix, ipwhitelist"
|
||||
|
||||
lighthouse-lukso:
|
||||
image: sigp/lighthouse:v4.0.1-modern
|
||||
ports:
|
||||
- "17765:17765"
|
||||
- "17765:17765/udp"
|
||||
- "127.0.0.1:5052:5052"
|
||||
volumes:
|
||||
- .jwtsecret:/jwtsecret
|
||||
- lighthouse-lukso_data:/root/.lighthouse
|
||||
- ./lukso:/configs/mainnet/shared
|
||||
command: >
|
||||
lighthouse beacon_node
|
||||
--testnet-dir /configs/mainnet/shared
|
||||
--eth1-endpoints http://erigon-lukso:8545
|
||||
--execution-endpoint http://erigon-lukso:8551
|
||||
--execution-jwt /jwtsecret
|
||||
--subscribe-all-subnets true
|
||||
--boot-nodes enr:-MK4QJ-Bt9HATy4GQawPbDDTArtnt_phuWiVVoWKhS7-DSNjVzmGKBI9xKzpyRtpeCWd3qA9737FTdkKGDgtHfF4N-6GAYlzJCVRh2F0dG5ldHOIAAAAAAAAAACEZXRoMpA2ulfbQgAABP__________gmlkgnY0gmlwhCKTScGJc2VjcDI1NmsxoQJNpNUERqKhA8eDDC4tovG3a59NXVOW16JDFAWXoFFTEYhzeW5jbmV0cwCDdGNwgjLIg3VkcIIu4A enr:-MK4QHcS3JeTtVjOuJyVXvO1E6XJWqiwmhLfodel6vARPI8ve_2q9vVn8LpIL964qBId7zGpSVKw6oOPAaRm2H7ywYiGAYmHDeBbh2F0dG5ldHOIAAAAAAAAAACEZXRoMpA2ulfbQgAABP__________gmlkgnY0gmlwhCIgwNOJc2VjcDI1NmsxoQNGVC8JPcsqsZPoohLP1ujAYpBfS0dBwiz4LeoUQ-k5OohzeW5jbmV0cwCDdGNwgjLIg3VkcIIu4A
|
||||
# --checkpoint-sync-url https://sync.invis.tools
|
||||
--http
|
||||
--http-address 0.0.0.0
|
||||
--port 18719
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 1m
|
||||
networks:
|
||||
- chains
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.middlewares.lighthouse-lukso-stripprefix.stripprefix.prefixes=/lighthouse-lukso"
|
||||
- "traefik.http.services.lighthouse-lukso.loadbalancer.server.port=5052"
|
||||
- "traefik.http.routers.lighthouse-lukso.entrypoints=websecure"
|
||||
- "traefik.http.routers.lighthouse-lukso.tls.certresolver=myresolver"
|
||||
- "traefik.http.routers.lighthouse-lukso.rule=Host(`$DOMAIN`) && PathPrefix(`/lighthouse-lukso`)"
|
||||
- "traefik.http.routers.lighthouse-lukso.middlewares=lighthouse-lukso-stripprefix, ipwhitelist"
|
||||
|
||||
volumes:
|
||||
erigon-lukso:
|
||||
lighthouse-lukso_data:
|
||||
@@ -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
|
||||
@@ -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
|
||||
File diff suppressed because one or more lines are too long
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
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
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user