-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
@@ -65,7 +65,7 @@ pub trait Trait<I: Instance=DefaultInstance>: frame_system::Trait { | |||
type Origin: From<RawOrigin<Self::AccountId, I>>; | |||
|
|||
/// The outer call dispatch type. | |||
type Proposal: Parameter + Dispatchable<Origin=<Self as Trait<I>>::Origin> + From<Call<Self, I>>; | |||
type Proposal: Parameter + Dispatchable<Origin=<Self as Trait<I>>::Origin> + From<frame_system::Call<Self>>; |
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.
can you elaborate?
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.
The original statement allowed us to pass extrinsics from the module as a Proposal
. In the benchmark, I opted to use System::remark
instead as my generic proposal, so I placed the requirement that I can convert from frame_system::Call
to proposal. This trait should always be satisfied for all pallets afaik
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.
Everything looks good,
But for democracy, I didn't looked carefully if the benchmarked actually take into account all possible execution path.
@thiolliere If things look good, would appreciate a green checkmark here |
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.
I approve, about democracy benchmarks I think results will be double check when writing the final weight formula
This PR does a deep review with validation logic on some benchmarks to ensure that we are fully testing everything needed to sensibly weight these extrinsics and pallets.
Changes:
"*"
syntaxUpdate Benchmarks for
Will update Offenses in a separate PR