From c6772d02f48f227f9cd1dc7b02a9e7d809712e34 Mon Sep 17 00:00:00 2001 From: Yiming Zang <50607998+yzang2019@users.noreply.github.com> Date: Fri, 24 May 2024 09:35:52 +0800 Subject: [PATCH] Fix genesis export command (#1653) (#1688) * Fix genesis export command * Bump cosmos and seidb version * Fix go mod dependency issue --- app/app.go | 2 +- docker/rpcnode/Dockerfile | 6 +++--- go.mod | 4 ++-- go.sum | 8 ++++---- integration_test/chain_operation/snapshot_operation.yaml | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/app.go b/app/app.go index a42864cd4e..9d3222ea6d 100644 --- a/app/app.go +++ b/app/app.go @@ -1652,7 +1652,7 @@ func (app *App) getFinalizeBlockResponse(appHash []byte, events []abci.Event, tx // LoadHeight loads a particular height func (app *App) LoadHeight(height int64) error { - return app.LoadVersion(height) + return app.LoadVersionWithoutInit(height) } // ModuleAccountAddrs returns all the app's module account addresses. diff --git a/docker/rpcnode/Dockerfile b/docker/rpcnode/Dockerfile index 56131445fd..cf099206c7 100644 --- a/docker/rpcnode/Dockerfile +++ b/docker/rpcnode/Dockerfile @@ -1,8 +1,8 @@ FROM ubuntu:latest RUN apt-get update && \ - apt-get install -y make git wget build-essential jq python3 curl vim -RUN wget https://go.dev/dl/go1.20.6.linux-amd64.tar.gz -RUN tar -xvf go1.20.6.linux-amd64.tar.gz + apt-get install -y make git wget build-essential jq python3 curl vim uuid-runtime +RUN wget https://go.dev/dl/go1.21.4.linux-amd64.tar.gz +RUN tar -xvf go1.21.4.linux-amd64.tar.gz RUN mv go /usr/local/ SHELL ["/bin/bash", "-c"] diff --git a/go.mod b/go.mod index 8eeead5c09..5e353f61cc 100644 --- a/go.mod +++ b/go.mod @@ -348,12 +348,12 @@ require ( replace ( github.com/CosmWasm/wasmd => github.com/sei-protocol/sei-wasmd v0.1.5 github.com/confio/ics23/go => github.com/cosmos/cosmos-sdk/ics23/go v0.8.0 - github.com/cosmos/cosmos-sdk => github.com/sei-protocol/sei-cosmos v0.3.13 + github.com/cosmos/cosmos-sdk => github.com/sei-protocol/sei-cosmos v0.3.16 github.com/cosmos/iavl => github.com/sei-protocol/sei-iavl v0.1.9 github.com/cosmos/ibc-go/v3 => github.com/sei-protocol/sei-ibc-go/v3 v3.3.0 github.com/ethereum/go-ethereum => github.com/sei-protocol/go-ethereum v1.13.5-sei-17 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 - github.com/sei-protocol/sei-db => github.com/sei-protocol/sei-db v0.0.36 + github.com/sei-protocol/sei-db => github.com/sei-protocol/sei-db v0.0.38 // Latest goleveldb is broken, we have to stick to this version github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 github.com/tendermint/tendermint => github.com/sei-protocol/sei-tendermint v0.3.3 diff --git a/go.sum b/go.sum index 350f420558..5e9f55e296 100644 --- a/go.sum +++ b/go.sum @@ -1350,10 +1350,10 @@ github.com/sei-protocol/go-ethereum v1.13.5-sei-17 h1:NQcNuL/nmLCzVJFj6Za4ZrNj1O github.com/sei-protocol/go-ethereum v1.13.5-sei-17/go.mod h1:kcRZmuzRn1lVejiFNTz4l4W7imnpq1bDAnuKS/RyhbQ= github.com/sei-protocol/goutils v0.0.2 h1:Bfa7Sv+4CVLNM20QcpvGb81B8C5HkQC/kW1CQpIbXDA= github.com/sei-protocol/goutils v0.0.2/go.mod h1:iYE2DuJfEnM+APPehr2gOUXfuLuPsVxorcDO+Tzq9q8= -github.com/sei-protocol/sei-cosmos v0.3.13 h1:YNlvDYMJZUJjI9nyIeHqxw9TULGulvbClhMJH/gh2oU= -github.com/sei-protocol/sei-cosmos v0.3.13/go.mod h1:WWwx6XlJc9SrjdRwLW69o511hFpfUiHapYb+V9OqOG4= -github.com/sei-protocol/sei-db v0.0.36 h1:Qg8MlO/4btECyAB/XrbEexhpaS7OmYsrs9IUYULf+bY= -github.com/sei-protocol/sei-db v0.0.36/go.mod h1:F/ZKZA8HJPcUzSZPA8yt6pfwlGriJ4RDR4eHKSGLStI= +github.com/sei-protocol/sei-cosmos v0.3.16 h1:NVTpiSVExPeETJSLbARB5g3xkOG++/bgSvVtxUZHDNo= +github.com/sei-protocol/sei-cosmos v0.3.16/go.mod h1:xZYuJxxS6zdhNq+pKQPiaAjSZGU5EXe9bjrCdMBXxUQ= +github.com/sei-protocol/sei-db v0.0.38 h1:GiQl3qBd6XgGsHkJd4I8GnOmGjGoWQg3SJAS82TTNao= +github.com/sei-protocol/sei-db v0.0.38/go.mod h1:F/ZKZA8HJPcUzSZPA8yt6pfwlGriJ4RDR4eHKSGLStI= github.com/sei-protocol/sei-iavl v0.1.9 h1:y4mVYftxLNRs6533zl7N0/Ch+CzRQc04JDfHolIxgBE= github.com/sei-protocol/sei-iavl v0.1.9/go.mod h1:7PfkEVT5dcoQE+s/9KWdoXJ8VVVP1QpYYPLdxlkSXFk= github.com/sei-protocol/sei-ibc-go/v3 v3.3.0 h1:/mjpTuCSEVDJ51nUDSHU92N0bRSwt49r1rmdC/lqgp8= diff --git a/integration_test/chain_operation/snapshot_operation.yaml b/integration_test/chain_operation/snapshot_operation.yaml index 81c05eb6b1..2231ef728b 100644 --- a/integration_test/chain_operation/snapshot_operation.yaml +++ b/integration_test/chain_operation/snapshot_operation.yaml @@ -1,6 +1,6 @@ - name: Test validators should be able to create snapshot with custom location inputs: - # Check if snapshotd are created + # Check if snapshots are created - cmd: if [ -d "./build/generated/node_0/snapshots" ]; then echo "true"; else echo "false"; fi env: FOUND node: sei-node-0