Fix compiler issues

This commit is contained in:
Pawan Dhananjay 2023-04-21 14:14:57 -07:00
parent 689c0f76d3
commit b2ccc822d8
No known key found for this signature in database
GPG Key ID: 647E56278D7E9B4C
3 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
FROM rust:1.68.2-bullseye AS builder FROM rust:1.68.2-bullseye AS builder
RUN apt-get update && apt-get -y upgrade && apt-get install -y cmake libclang-dev protobuf-compiler RUN apt-get update && apt-get -y upgrade && apt-get install -y cmake clang libclang-dev protobuf-compiler
COPY . lighthouse COPY . lighthouse
ARG FEATURES ARG FEATURES
ENV FEATURES $FEATURES ENV FEATURES $FEATURES

View File

@ -1701,6 +1701,7 @@ impl<T: EthSpec> ExecutionLayer<T> {
let payload = match fork { let payload = match fork {
ForkName::Merge => ExecutionPayloadMerge::default().into(), ForkName::Merge => ExecutionPayloadMerge::default().into(),
ForkName::Capella => ExecutionPayloadCapella::default().into(), ForkName::Capella => ExecutionPayloadCapella::default().into(),
ForkName::Eip4844 => ExecutionPayloadEip4844::default().into(),
ForkName::Base | ForkName::Altair => { ForkName::Base | ForkName::Altair => {
return Err(Error::InvalidForkForPayload); return Err(Error::InvalidForkForPayload);
} }

View File

@ -2,7 +2,7 @@
# - from the `lighthouse` dir with the command: `docker build -f ./lcli/Dockerflie .` # - from the `lighthouse` dir with the command: `docker build -f ./lcli/Dockerflie .`
# - from the current directory with the command: `docker build -f ./Dockerfile ../` # - from the current directory with the command: `docker build -f ./Dockerfile ../`
FROM rust:1.68.2-bullseye AS builder FROM rust:1.68.2-bullseye AS builder
RUN apt-get update && apt-get -y upgrade && apt-get install -y cmake libclang-dev protobuf-compiler RUN apt-get update && apt-get -y upgrade && apt-get install -y cmake clang libclang-dev protobuf-compiler
COPY . lighthouse COPY . lighthouse
ARG PORTABLE ARG PORTABLE
ENV PORTABLE $PORTABLE ENV PORTABLE $PORTABLE