Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Dec 19, 2024
1 parent 69d6549 commit 81ff549
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/consensus/lighthouse/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ RUN git clone https://github.com/sigp/lighthouse.git && \
git checkout $LIGHTHOUSE_VERSION

WORKDIR /root/lighthouse
RUN . "$HOME/.cargo/env" && make
RUN . "$HOME/.cargo/env" && cargo build

2 changes: 1 addition & 1 deletion ethereum/ethereum-reth/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ COPY --from=reth-build /root/reth/target/maxperf/reth /root/bin/
COPY --from=lighthouse-build /root/lighthouse/target/release/lighthouse /root/bin/

COPY ./Caddyfile.template /var/lib/babel/templates/
COPY ./reth.rhai /var/lib/babel/plugin/reth.rhai
COPY ./reth.rhai /var/lib/babel/plugin/
COPY ./main.rhai /var/lib/babel/plugin/
COPY ./config-alloy.template /var/lib/babel/templates/config-alloy.template
20 changes: 19 additions & 1 deletion ethereum/ethereum-reth/main.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,26 @@ const PLUGIN_CONFIG = #{
${global::RETH_EXTRA_ARGS}`,
shutdown_timeout_secs: 120,
use_blockchain_data: true,
log_timestamp: false,
},
#{
name: "lighthouse",
run_sh: `RUST_LOG=info /root/bin/lighthouse bn \
--network ${global::NET.networkname} \
--datadir ${global::LIGHTHOUSE_DIR} \
--checkpoint-sync-url ${global::NET.url} \
--disable-deposit-contract-sync --http \
--http-address 127.0.0.1 --http-port 5052 \
--execution-endpoint http://127.0.0.1:8551 \
--execution-jwt ${global::HOME}/jwt.hex \
--metrics --metrics-port 9002 --prune-blobs false \
--reconstruct-historic-states --block-cache-size 64 \
--genesis-backfill --historic-state-cache-size 4 \
--disable-backfill-rate-limiting`,
shutdown_timeout_secs: 120,
use_blockchain_data: true,
log_timestamp: false,
},
],
alternative_download: #{
run_sh: "echo dummy"
Expand All @@ -96,7 +115,6 @@ fn application_status() {
}
}


fn height() {
parse_hex(run_jrpc(#{host: global::API_HOST, method: "eth_blockNumber"}).expect(200).result)
}
Expand Down

0 comments on commit 81ff549

Please sign in to comment.