Skip to content

Commit

Permalink
chore: set upgrade height for testnet v8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zakir-code committed Jan 22, 2025
1 parent 3890139 commit 5bf10f2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile.cosmovisor
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ghcr.io/pundiai/fxcorevisor:7.5.1 AS fxv7_5
FROM ghcr.io/pundiai/fx-core:8.0.0-rc0 AS fxv8
FROM ghcr.io/pundiai/fx-core:8.1.0-rc1 AS fxv8_1
FROM ghcr.io/pundiai/fx-core:8.2.0-rc2 AS fxv8_2
FROM --platform=$BUILDPLATFORM alpine:3.19 AS downloader

ARG TARGETPLATFORM
Expand Down Expand Up @@ -31,6 +32,7 @@ COPY --from=fxv7_5 /root/.fxcore/cosmovisor /root/.fxcore/cosmovisor

COPY --from=fxv8 /usr/bin/fxcored /root/.fxcore/cosmovisor/upgrades/v8.0.x/bin/fxcored
COPY --from=fxv8_1 /usr/bin/fxcored /root/.fxcore/cosmovisor/upgrades/v8.1.x/bin/fxcored
COPY --from=fxv8_2 /usr/bin/fxcored /root/.fxcore/cosmovisor/upgrades/v8.2.x/bin/fxcored

COPY --from=downloader /cosmovisor /usr/bin/cosmovisor

Expand Down
4 changes: 3 additions & 1 deletion Dockerfile.cosmovisor-lite
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ghcr.io/pundiai/fx-core:7.5.1 AS fxv7_5
FROM ghcr.io/pundiai/fx-core:8.0.0-rc0 AS fxv8
FROM ghcr.io/pundiai/fx-core:8.1.0-rc1 AS fxv8_1
FROM ghcr.io/pundiai/fx-core:8.2.0-rc2 AS fxv8_2
FROM --platform=$BUILDPLATFORM alpine:3.19 AS downloader

ARG TARGETPLATFORM
Expand Down Expand Up @@ -29,10 +30,11 @@ ENV PATH="/root/.fxcore/cosmovisor/current/bin:${PATH}"

COPY --from=fxv7_5 /usr/bin/fxcored /root/.fxcore/cosmovisor/genesis/bin/fxcored
RUN mkdir -p /root/.fxcore/cosmovisor/upgrades/v7.5.x/bin && \
ln -s /usr/bin/fxcored /root/.fxcore/cosmovisor/upgrades/v7.5.x/bin/fxcored
ln -s /root/.fxcore/cosmovisor/genesis/bin/fxcored /root/.fxcore/cosmovisor/upgrades/v7.5.x/bin/fxcored

COPY --from=fxv8 /usr/bin/fxcored /root/.fxcore/cosmovisor/upgrades/v8.0.x/bin/fxcored
COPY --from=fxv8_1 /usr/bin/fxcored /root/.fxcore/cosmovisor/upgrades/v8.1.x/bin/fxcored
COPY --from=fxv8_2 /usr/bin/fxcored /root/.fxcore/cosmovisor/upgrades/v8.2.x/bin/fxcored

COPY --from=downloader /cosmovisor /usr/bin/cosmovisor

Expand Down
2 changes: 2 additions & 0 deletions cmd/doctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ func checkBlockchainData(bc blockchain, genesisId, privValidatorKeyFile string)
fmt.Printf("%sVersion: v8\n", SPACE)
} else if blockHeight < fxtypes.TestnetBlockHeightV81 {
fmt.Printf("%sVersion: v8.1\n", SPACE)
} else if blockHeight < fxtypes.TestnetBlockHeightV82 {
fmt.Printf("%sVersion: v8.2\n", SPACE)
}
}
return plan != nil, nil
Expand Down
1 change: 1 addition & 0 deletions types/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const (
TestnetBlockHeightV75 = 15_660_500 // v7.5
TestnetBlockHeightV8 = 18_005_000 // v8
TestnetBlockHeightV81 = 18_019_000 // v8.1
TestnetBlockHeightV82 = 18_332_000 // v8.2
)

func EIP155ChainID(chainId string) *big.Int {
Expand Down

0 comments on commit 5bf10f2

Please sign in to comment.