-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem: no rollback command to help with app-hash mismatch situation #481
Closed
Closed
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,11 +17,11 @@ require ( | |
github.com/spf13/cobra v1.4.0 | ||
github.com/spf13/pflag v1.0.5 | ||
github.com/stretchr/testify v1.7.1 | ||
github.com/tendermint/tendermint v0.34.19 | ||
github.com/tendermint/tendermint v0.34.20-0.20220517115723-e6f071164839 | ||
github.com/tendermint/tm-db v0.6.7 | ||
github.com/tharsis/ethermint v0.6.1-0.20220503175102-93d15db4d086 | ||
github.com/tharsis/ethermint v0.6.1-0.20220519101126-9edc87d1147f | ||
google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4 | ||
google.golang.org/grpc v1.45.0 | ||
google.golang.org/grpc v1.46.2 | ||
google.golang.org/protobuf v1.28.0 | ||
gopkg.in/yaml.v2 v2.4.0 | ||
) | ||
|
@@ -62,10 +62,10 @@ require ( | |
github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b // indirect | ||
github.com/edsrzf/mmap-go v1.0.0 // indirect | ||
github.com/felixge/httpsnoop v1.0.1 // indirect | ||
github.com/fsnotify/fsnotify v1.5.1 // indirect | ||
github.com/fsnotify/fsnotify v1.5.4 // indirect | ||
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect | ||
github.com/go-kit/kit v0.12.0 // indirect | ||
github.com/go-kit/log v0.2.0 // indirect | ||
github.com/go-kit/log v0.2.1 // indirect | ||
github.com/go-logfmt/logfmt v0.5.1 // indirect | ||
github.com/go-ole/go-ole v1.2.5 // indirect | ||
github.com/go-stack/stack v1.8.0 // indirect | ||
|
@@ -95,7 +95,7 @@ require ( | |
github.com/jmhodges/levigo v1.0.0 // indirect | ||
github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d // indirect | ||
github.com/klauspost/compress v1.13.6 // indirect | ||
github.com/lib/pq v1.10.4 // indirect | ||
github.com/lib/pq v1.10.6 // indirect | ||
github.com/libp2p/go-buffer-pool v0.0.2 // indirect | ||
github.com/magiconair/properties v1.8.6 // indirect | ||
github.com/mattn/go-isatty v0.0.14 // indirect | ||
|
@@ -111,7 +111,7 @@ require ( | |
github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/prometheus/client_golang v1.12.1 // indirect | ||
github.com/prometheus/client_golang v1.12.2 // indirect | ||
github.com/prometheus/client_model v0.2.0 // indirect | ||
github.com/prometheus/common v0.32.1 // indirect | ||
github.com/prometheus/procfs v0.7.3 // indirect | ||
|
@@ -153,7 +153,7 @@ require ( | |
replace ( | ||
// TODO: fix keyring upstream | ||
github.com/99designs/keyring => github.com/crypto-org-chain/keyring v1.1.6-fixes | ||
github.com/cosmos/cosmos-sdk => github.com/cosmos/cosmos-sdk v0.45.4 | ||
github.com/cosmos/cosmos-sdk => github.com/crypto-org-chain/cosmos-sdk v0.44.4-0.20220518122256-e49cc20318cf | ||
|
||
// TODO: remove when middleware will be implemented | ||
github.com/cosmos/ibc-go/v3 => github.com/crypto-org-chain/ibc-go/v3 v3.0.0-hooks | ||
|
@@ -163,5 +163,7 @@ replace ( | |
// TODO: remove when gravity update dependencies | ||
github.com/peggyjv/gravity-bridge/module/v2 => github.com/crypto-org-chain/gravity-bridge/module/v2 v2.0.0-20220509015341-a016e2b04866 | ||
|
||
github.com/tendermint/tendermint => github.com/yihuang/tendermint v0.34.14-0.20220518061324-81344ac9464d | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
google.golang.org/grpc => google.golang.org/grpc v1.33.2 | ||
) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ pkgs ? import ../../nix { } }: | ||
let cronosd = (pkgs.callPackage ../../. { }); | ||
in | ||
cronosd.overrideAttrs (oldAttrs: { | ||
patches = oldAttrs.patches or [ ] ++ [ | ||
./broken-cronosd.patch | ||
]; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/app/app.go b/app/app.go | ||
index 21eab4d..156fad7 100644 | ||
--- a/app/app.go | ||
+++ b/app/app.go | ||
@@ -773,6 +773,10 @@ func (app *App) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.R | ||
|
||
// EndBlocker application updates every end block | ||
func (app *App) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock { | ||
+ if ctx.BlockHeight() % 10 == 0 { | ||
+ store := ctx.KVStore(app.keys["cronos"]) | ||
+ store.Set([]byte("hello"), []byte("world")) | ||
+ } | ||
return app.mm.EndBlock(ctx, req) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
dotenv: ../../scripts/.env | ||
cronos_777-1: | ||
cmd: cronosd | ||
start-flags: "--trace" | ||
app-config: | ||
minimum-gas-prices: 0basetcro | ||
json-rpc: | ||
address: "0.0.0.0:{EVMRPC_PORT}" | ||
ws-address: "0.0.0.0:{EVMRPC_PORT_WS}" | ||
api: "eth,net,web3,debug,cronos" | ||
validators: | ||
- coins: 1000000000000000000stake,10000000000000000000000basetcro | ||
staked: 1000000000000000000stake | ||
mnemonic: ${VALIDATOR1_MNEMONIC} | ||
- coins: 1000000000000000000stake,10000000000000000000000basetcro | ||
staked: 1000000000000000000stake | ||
mnemonic: ${VALIDATOR2_MNEMONIC} | ||
- name: fullnode | ||
accounts: | ||
- name: community | ||
coins: 10000000000000000000000basetcro | ||
mnemonic: ${COMMUNITY_MNEMONIC} | ||
- name: signer1 | ||
coins: 20000000000000000000000basetcro | ||
mnemonic: ${SIGNER1_MNEMONIC} | ||
- name: signer2 | ||
coins: 30000000000000000000000basetcro | ||
mnemonic: ${SIGNER2_MNEMONIC} | ||
|
||
genesis: | ||
consensus_params: | ||
block: | ||
max_bytes: "1048576" | ||
max_gas: "81500000" | ||
app_state: | ||
evm: | ||
params: | ||
evm_denom: basetcro | ||
cronos: | ||
params: | ||
cronos_admin: ${CRONOS_ADMIN} | ||
enable_auto_deployment: true | ||
ibc_cro_denom: ${IBC_CRO_DENOM} | ||
gov: | ||
voting_params: | ||
voting_period: "10s" | ||
deposit_params: | ||
max_deposit_period: "10s" | ||
min_deposit: | ||
- denom: "basetcro" | ||
amount: "1" | ||
transfer: | ||
params: | ||
receive_enabled: true | ||
send_enabled: true | ||
feemarket: | ||
params: | ||
no_base_fee: false | ||
initial_base_fee: 100000000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cosmos/cosmos-sdk#11982