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

Simulate from a genesis file #3182

Closed
ValarDragon opened this issue Dec 20, 2018 · 3 comments
Closed

Simulate from a genesis file #3182

ValarDragon opened this issue Dec 20, 2018 · 3 comments

Comments

@ValarDragon
Copy link
Contributor

ValarDragon commented Dec 20, 2018

We should add functionality to run the simulator from a given genesis file. There is the problem of not knowing the private key to accounts / validators. This can be fixed by swapping every address / pubkey with a known privkey / pubkey / address pair. This would catch a decent class of issues that have high human-hour cost, such as game of stake upgrade 1's halt and upgrade 2's halt.

Alternatively if we are just doing message simulation, you don't even need the private keys. I think its overall simpler to swap out the private keys, and have the ability to do either msg or tx simulation. (Key swapping should take negligible time)

@rigelrozanski
Copy link
Contributor

I think this is encompassed within #3026 ... duplicate?

@ValarDragon
Copy link
Contributor Author

I don't think it is. AFAIU #3026 is about replaying an existing blockchain. This is about simulating from a genesis file where you know none of the private keys.

@rigelrozanski
Copy link
Contributor

my mistake you're correct, they are distinct - however there are overlapping components, such as the private key "swapping" so to speak; also a common framework would be beneficial whether they are existing txs from a historical executed blockchain or generated from txs from the simulation. So yeah I think we should implement with this in mind

Additionally the combination of these two utilities may also be useful (imagine running known txs to a certain point and further simulation txs after)

@jackzampolin jackzampolin added this to the v0.31.0 (Launch RC) milestone Jan 29, 2019
@jackzampolin jackzampolin moved this from To do to In progress in v0.31.0 (Launch RC) Jan 29, 2019
v0.31.0 (Launch RC) automation moved this from In progress to Done Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

4 participants