Skip to content
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

Fix IBC (x/capability) nondeterminism after node restart #4166

Merged
merged 3 commits into from
Dec 9, 2021

Conversation

michaelfig
Copy link
Member

closes: #4159

Description

Fixes nondeterminism caused by missing x/capability in the Cosmos SetOrderBeginBlockers call (found by narrowing down to a x/capability problem, then studying occurrences of capability in Cosmos SDK v0.44.4 cosmos-sdk/simapp/app.go).

Simplifies the golang/cosmos/app/app.go to set less genesis.json overrides, instead doing it explicitly in agoric set-defaults. This makes things a little less magical.

Also updates packages/deployment to work with newer Docker installations where the /sys/fs/cgroup must not be mounted. I needed this to do local testing.

Security Considerations

Documentation Considerations

Testing Considerations

We really need multinode IBC testing along with the other loadgen tests. Maybe for the New Year?

@michaelfig michaelfig added cosmic-swingset package: cosmic-swingset agoric-cli package: agoric-cli deployment Chain deployment mechanism (e.g. testnet) labels Dec 9, 2021
@michaelfig michaelfig requested review from dckc and JimLarson December 9, 2021 04:20
@michaelfig michaelfig self-assigned this Dec 9, 2021
@michaelfig michaelfig changed the title Mfig dont munge genesis Fix IBC (x/capability) nondeterminism after node restart Dec 9, 2021
@mhofman
Copy link
Member

mhofman commented Dec 9, 2021

We really need multinode IBC testing along with the other loadgen tests. Maybe for the New Year?

File a new issue? Is this something we can extend the loadgen to do?

Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tmjson looks handy :)

@@ -5,6 +5,8 @@ export const CENTRAL_DENOM = 'urun';
export const MINT_DENOM = 'ubld';
export const STAKING_DENOM = 'ubld';
export const STAKING_MAX_VALIDATORS = 150;
export const COSMOS_TRANSFER_PORT_ID = 'cosmos-transfer';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still fuzzy on transfer vs. cosmos-transfer. Is it worth adding a comment about that here?

@michaelfig michaelfig force-pushed the mfig-dont-munge-genesis branch from f05ba9a to 823f4fe Compare December 9, 2021 19:26
@michaelfig michaelfig added the automerge:no-update (expert!) Automatically merge without updates label Dec 9, 2021
@mergify mergify bot merged commit 4b40da0 into master Dec 9, 2021
@mergify mergify bot deleted the mfig-dont-munge-genesis branch December 9, 2021 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agoric-cli package: agoric-cli automerge:no-update (expert!) Automatically merge without updates cosmic-swingset package: cosmic-swingset deployment Chain deployment mechanism (e.g. testnet)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Divergence between nodes after restart during IBC channel open
4 participants