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]: Simulations fail because validator set is empty in the genesis before chain init #16525

Closed
pinosu opened this issue Jun 13, 2023 · 1 comment · Fixed by #21906
Closed

Comments

@pinosu
Copy link
Contributor

pinosu commented Jun 13, 2023

Summary of Bug

For certain seeds it happens that simulations panic because validator set is empty in the genesis before chain init.
This happens because initially_bonded_validators sometimes is 0 and this scenario should not be possible.
Logs example:

Selected randomly generated parameters for simulated genesis:
{
  stake_per_account: "{824639709536}",
  initially_bonded_validators: "0"
}

Version

0.47.3

Steps to Reproduce

In wasmd module it can be reproduced by running:
go test ./app -run TestAppStateDeterminism -Enabled=true -NumBlocks=1 -Genesis= -Verbose=true -Commit=true -Seed=4003615766033486007 -Period=1 -ExportParamsPath /tmp/sim-logs-548063760/sim_params-4003615766033486007.json -ExportStatePath /tmp/sim-logs-548063760/sim_state-4003615766033486007.json -v -timeout 24h

@pinosu pinosu added the T:Bug label Jun 13, 2023
@alexanderbez
Copy link
Contributor

We'll take this into account with the refactored simulator package 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants