-
Notifications
You must be signed in to change notification settings - Fork 1.6k
proper executor/block type for benchmarks and try-runtime #2771
Conversation
|
cli/src/command.rs
Outdated
.map_err(|e| Error::SubstrateCli(e)) | ||
})?) | ||
} else { | ||
panic!("can only use benchmarks with --chain value of [polkadot, kusama, westend], got {}", spec_name); |
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.
panic!("can only use benchmarks with --chain value of [polkadot, kusama, westend], got {}", spec_name); | |
panic!("can only use benchmarks with --chain value of [polkadot-dev, kusama-dev, westend-dev], got {}", spec_name); |
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.
👍
Which hardcoded genesis exactly? I see, so my observation was expected, but I still don't get why we cannot compile the real polkadot node+runtime, with these additional apis piggybacked? |
The genesis of the real Polkadot blockchain :) https://github.com/paritytech/polkadot/tree/master/node/service/res |
Huh, I did not know that existed :D |
closes #2516
What I don't get is that when I run these two commands with
--chain=polkadot
and inspect the executor logs, I getpolkadot-0
as the spec-version, but when I do--chain=polkadot-dev
I getpolkadot-30
. Is this why we also run benchmarks always with-dev
variants? And why is this?Either way, that coded needed refactoring.