-
Notifications
You must be signed in to change notification settings - Fork 68
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
scheduler pallet benchmarking #43
Conversation
runtime/picasso/src/lib.rs
Outdated
@@ -650,7 +650,10 @@ impl scheduler::Config for Runtime { | |||
type ScheduleOrigin = EnsureRoot<AccountId>; | |||
type MaxScheduledPerBlock = MaxScheduledPerBlock; | |||
// TODO: benchmark for runtime | |||
type WeightInfo = (); | |||
type WeightInfo = scheduler::weights::SubstrateWeight<Runtime>; |
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.
This needs to change to weights::scheduler
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.
type WeightInfo = scheduler::weights::SubstrateWeight<Runtime>; | |
type WeightInfo = weights::scheduler::SubstrateWeight<Runtime>; |
this is super weird, when using the weight file from the pallet it works but not copying it over to the folder |
runtime/picasso/src/lib.rs
Outdated
@@ -650,7 +650,10 @@ impl scheduler::Config for Runtime { | |||
type ScheduleOrigin = EnsureRoot<AccountId>; | |||
type MaxScheduledPerBlock = MaxScheduledPerBlock; | |||
// TODO: benchmark for runtime | |||
type WeightInfo = (); | |||
type WeightInfo = scheduler::weights::SubstrateWeight<Runtime>; |
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.
type WeightInfo = scheduler::weights::SubstrateWeight<Runtime>; | |
type WeightInfo = weights::scheduler::SubstrateWeight<Runtime>; |
@seunlanlege changes made |
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.
perfect
…-runtime Add pallet-lending in runtime
Everything is set, works only when calling the pallet directly, not works from local weights but from the pallets weights(even doe the file is the same)
WIP