-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add beefy light client tests and benchamarks #13
base: develop
Are you sure you want to change the base?
Conversation
} | ||
|
||
|
||
submit_signature_commitment_10_128 { |
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.
What is output of your benchmarks?
As I see the result is not mapped to WeightInfo trait.
Also how did you get submit_signature_commitment() weight? Because you will get of methods submit_signature_commitment_x_y() with different weights?
fn initialize() -> Weight; | ||
|
||
fn submit_signature_commitment() -> Weight; |
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.
fn initialize() -> Weight; | |
fn submit_signature_commitment() -> Weight; | |
fn initialize() -> Weight; | |
fn submit_signature_commitment() -> Weight; |
@@ -217,7 +233,7 @@ pub mod pallet { | |||
Ok(().into()) | |||
} | |||
|
|||
#[pallet::weight(0)] | |||
#[pallet::weight(<T as Config>::WeightInfo::submit_signature_commitment())] |
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.
Looking at your benchmarks I think you need to rework the weight of submit_signature_commitment()
|
||
submit_signature_commitment_20_256 { | ||
let validators = 20; | ||
let tree_size = 256; |
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.
Never used
mod benchmark_features; | ||
|
||
#[cfg(any(test, feature = "runtime-benchmarks"))] | ||
// #[cfg(test)] |
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.
Do you need this commented code?
No description provided.