Skip to content

Commit

Permalink
fix: testnet block 244 can't import
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbillw committed Dec 18, 2024
1 parent 7e23e95 commit cf81732
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ fi
docker_build_args+=(
--build-arg OA=$OA
--build-arg VC=$VC
--build-arg CHAIN_NETWORK=$network
)

eval $which_build_proc
Expand Down
6 changes: 6 additions & 0 deletions scripts/docker/node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,21 @@ COPY pallets pallets
COPY crates crates
COPY standalone standalone
COPY Cargo.toml Cargo.lock rustfmt.toml rust-toolchain.toml Makefile ./
COPY scripts/wasm_overrides ./wasm_overrides

RUN make node

## We do not need the Rust toolchain to run the binary!
FROM ubuntu:20.04 AS runtime
ARG https_proxy
ARG http_proxy
ARG CHAIN_NETWORK

WORKDIR /opt/cess

COPY --from=builder /node/target/release/cess-node .
COPY --from=builder /node/wasm_overrides/ .wasm_overrides
RUN if [ "$CHAIN_NETWORK" = "testnet" ]; then ln -s ./.wasm_overrides/testnet ./wasms; else rm -rf .wasm_overrides; fi
RUN apt-get update && apt-get install -y curl && apt-get clean -y && apt-get autoremove

HEALTHCHECK --interval=30s --timeout=5s --start-period=1800s --retries=10 \
Expand Down
Binary file added scripts/wasm_overrides/testnet/spec_100.wasm
Binary file not shown.

0 comments on commit cf81732

Please sign in to comment.