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

bug: sponsorship invariant breakage #1615

Closed
danwt opened this issue Dec 4, 2024 · 3 comments
Closed

bug: sponsorship invariant breakage #1615

danwt opened this issue Dec 4, 2024 · 3 comments

Comments

@danwt
Copy link
Contributor

danwt commented Dec 4, 2024

https://github.com/dymensionxyz/dymension/compare/danwt/easy-replication0?expand=1

@danwt
Copy link
Contributor Author

danwt commented Dec 4, 2024

Starting the simulation from time Tue Oct 15 15:24:52 UTC 2165 (unixtime 6178519492)
Simulating... block 2/100, operation 400/401. simulation halted due to panic on block 2
Logs to writing to /Users/danwt/.simapp/simulations/1733331451821.log
--- FAIL: TestFullAppSimulation (0.51s)
panic: invariant broken: sponsorship: general invariant
	invariant broken: internal
	distribution does not match expected distribution from votes: power mismatch: 1993616806, 1993616805

		CRITICAL please submit the following transaction:
			 tx crisis invariant-broken sponsorship general [recovered]
	panic: invariant broken: sponsorship: general invariant
	invariant broken: internal
	distribution does not match expected distribution from votes: power mismatch: 1993616806, 1993616805

		CRITICAL please submit the following transaction:
			 tx crisis invariant-broken sponsorship general [recovered]
	panic: invariant broken: sponsorship: general invariant
	invariant broken: internal
	distribution does not match expected distribution from votes: power mismatch: 1993616806, 1993616805

		CRITICAL please submit the following transaction:
			 tx crisis invariant-broken sponsorship general

@keruch
Copy link
Contributor

keruch commented Dec 4, 2024

that's because of the known SDK issue with delegator shares:
cosmos/cosmos-sdk#20840
cosmos/cosmos-sdk#11084 (comment)

we have a test that reproduces this issue:
https://github.com/dymensionxyz/dymension/blob/c6826d75e77f6e16b09157d05b0caefdd7994698/x/sponsorship/keeper/staking_test.go

I think the best way would be to disable this invariant for now.

@danwt
Copy link
Contributor Author

danwt commented Dec 4, 2024

ok 👍

@danwt danwt closed this as completed Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants