Merge pull request #417 from cffls/v0.3.0-dev-lint

Fix default Dockerfile for new CLI
This commit is contained in:
Jerry 2022-06-02 08:47:58 -07:00 committed by GitHub
commit 4ffdbfe60d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -9,7 +9,9 @@ RUN apt-get update -y && apt-get upgrade -y \
WORKDIR ${BOR_DIR} WORKDIR ${BOR_DIR}
COPY . . COPY . .
RUN make bor-all RUN make bor
RUN cp build/bin/bor /usr/local/bin/
ENV SHELL /bin/bash ENV SHELL /bin/bash
EXPOSE 8545 8546 8547 30303 30303/udp EXPOSE 8545 8546 8547 30303 30303/udp

View file

@ -548,7 +548,7 @@ func (c *Bor) snapshot(chain consensus.ChainHeaderReader, number uint64, hash co
number, hash = number-1, header.ParentHash number, hash = number-1, header.ParentHash
} }
log.Info("Snapshot has been found in %d headers depth.", len(headers)) log.Info("Snapshot has been found in", "headers depth", len(headers))
// check if snapshot is nil // check if snapshot is nil
if snap == nil { if snap == nil {