Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch es-node fixes #163

Merged
merged 4 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ COPY --from=builder /es-node/run.sh /es-node/
RUN chmod +x /es-node/run.sh
WORKDIR /es-node

EXPOSE 9545 9222 30305/udp
EXPOSE 9545 9222 9222/udp
4 changes: 2 additions & 2 deletions GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ docker run --name es -d \
-e ES_NODE_SIGNER_PRIVATE_KEY=<private_key> \
-p 9545:9545 \
-p 9222:9222 \
-p 30305:30305/udp \
-p 9222:9222/udp \
--entrypoint /es-node/run.sh \
ghcr.io/ethstorage/es-node
ghcr.io/ethstorage/es-node:v0.1.4
```

You can check docker logs using the following command:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
ports:
- '9545:9545'
- '9222:9222'
- '30305:30305/udp'
- '9222:9222/udp'
volumes:
- ./es-data:/es-node/es-data
environment:
Expand Down
2 changes: 1 addition & 1 deletion run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ else
-e ES_NODE_SIGNER_PRIVATE_KEY=$ES_NODE_SIGNER_PRIVATE_KEY \
-p 9545:9545 \
-p 9222:9222 \
-p 30305:30305/udp \
-p 9222:9222/udp \
-d \
--entrypoint /es-node/run.sh \
$image_name
Expand Down
1 change: 0 additions & 1 deletion run-rpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ es_node_start=" --network devnet \
--l1.beacon http://65.109.115.36:5052 \
--l1.beacon-based-time 1701262812 \
--l1.beacon-based-slot 1 \
--p2p.listen.udp 30305 \
--p2p.max.request.size 4194304 \
--p2p.sync.concurrency 32 \
--p2p.bootnodes enr:-Li4QPFCNc7mLPqxoVrk1eKB0qa5hb8H75IBwhvdSGGdamx1egKibkKO1v1rtLt7r3pJvoVxv95ITlpSphYCAsunU6qGAYwkwuOpimV0aHN0b3JhZ2XbAYDY15S0tGvaqDX45LTY4gi2VZzSZ4UQUcGAgmlkgnY0gmlwhEFtcySJc2VjcDI1NmsxoQM9rkUZ7qWoJQT2UVrPzDRzmLqDrxCSR4zC4db-lgz1bYN0Y3CCJAaDdWRwgnZh \
Expand Down
3 changes: 1 addition & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ if [ ! -e ${zkey_file} ]; then
file_id="1ZLfhYeCXMnbk6wUiBADRAn1mZ8MI_zg-"
html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${file_id}"`
curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Eo 'confirm=[a-zA-Z0-9\-_]+'`&id=${file_id}" -o ${zkey_file}
rm cookie
fi

executable="./build/bin/es-node"
Expand All @@ -47,15 +48,13 @@ es_node_init="init --shard_index 0"

# start node
# TODO remove --network
# TODO remove --miner.priority-gas-price and --miner.gas-price when gas price query is available
es_node_start=" --network devnet \
--miner.enabled \
--storage.files $storage_file_0 \
--signer.private-key $ES_NODE_SIGNER_PRIVATE_KEY \
--l1.beacon http://65.109.115.36:5052 \
--l1.beacon-based-time 1701262812 \
--l1.beacon-based-slot 1 \
--p2p.listen.udp 30305 \
--download.thread 32 \
--p2p.max.request.size 4194304 \
--p2p.sync.concurrency 32 \
Expand Down