pallet-democracy use of weightinfo (#6783)

* democracy use of weightinfo

* fix some doc and benchs

* todo generate from parity machine

* factorize and add license

* use final weights

* add slightly more sensible default weight

* refactor

* rename benchmark to avoid confusion

* just make remove_other_vote benchmark being the worst case of the extrinsic
This commit is contained in:
Guillaume Thiolliere
2020-08-04 19:58:03 +02:00
committed by GitHub
parent 3a853d4dde
commit b6505d743f
6 changed files with 395 additions and 230 deletions
+1 -1
View File
@@ -495,7 +495,7 @@ impl pallet_democracy::Trait for Runtime {
type Scheduler = Scheduler;
type PalletsOrigin = OriginCaller;
type MaxVotes = MaxVotes;
type WeightInfo = ();
type WeightInfo = weights::pallet_democracy::WeightInfo;
}
parameter_types! {