-
Notifications
You must be signed in to change notification settings - Fork 803
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
Coretime Zombienet test #2867
Coretime Zombienet test #2867
Conversation
This changes `RelaychainDataProvider` to return the latest known relay chain block number in `on_initialize` et all, aka when the `validation_data` wasn't yet set by the inherent.
Currently this only lowers the `TimeslicePeriod` to `10` for faster testing.
… into bkchr-coretime-zombienet
Co-authored-by: Javier Viola <javier@parity.io>
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.
LGTM
@@ -215,6 +222,9 @@ impl pallet_broker::Config for Runtime { | |||
type RuntimeEvent = RuntimeEvent; | |||
type Currency = Balances; | |||
type OnRevenue = CreditToCollatorPot; | |||
#[cfg(feature = "fast-runtime")] | |||
type TimeslicePeriod = ConstU32<10>; |
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.
Just curious why not even lower?
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.
IDK :D Session length on Rococo local is also around 1 Minute aka 10 blocks.
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.
Seems as good a reason as any for the tests as they are now.
I was wondering why not e.g. 2 - shorter splittable number, but it would limit the interlacing options when we make more complicated tests.
@@ -247,7 +252,7 @@ fn mk_coretime_call(call: crate::coretime::CoretimeCalls) -> Instruction<()> { | |||
origin_kind: OriginKind::Superuser, | |||
// Largest call is set_lease with 1526 byte: | |||
// Longest call is reserve() with 31_000_000 | |||
require_weight_at_most: Weight::from_parts(100_000_000, 20_000), | |||
require_weight_at_most: Weight::from_parts(110_000_000, 20_000), |
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.
Was it really that tight?
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.
Yes. I think 106_000_000 or so was it AFAIR.
This adds a Zombienet test for Coretime.
Requires: #2862