Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Redirect pallets weights generated by benchmarking in runtime. #180

Closed
hbulgarini opened this issue May 22, 2023 · 0 comments · Fixed by #195
Closed

Redirect pallets weights generated by benchmarking in runtime. #180

hbulgarini opened this issue May 22, 2023 · 0 comments · Fixed by #195
Assignees
Labels
enhancement New feature or request

Comments

@hbulgarini
Copy link
Contributor

Once we have the weights files generated from the benchmarking bot, the pallets configured in the Trappist runtime should be redirected to use the weights that are created under the runtime/trappist/weights folder instead of using the weights crate from the pallets.

Here is an example:

Before:

impl pallet_treasury::Config for Runtime {
         ...
	type BurnDestination = ();
	type MaxApprovals = MaxApprovals;
	type WeightInfo = pallet_treasury::weights::SubstrateWeight<Runtime>;
         ...
}

After:

mod weights;

impl pallet_treasury::Config for Runtime {
         ...
	type BurnDestination = ();
	type MaxApprovals = MaxApprovals;
	type WeightInfo = weights::pallet_treasury::SubstrateWeight<Runtime>;
         ...
}

Depends on #141
CC: @kalaninja

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants