pub trait WeightInfo {
// Required method
fn validate_unsigned_and_then_heartbeat(k: u32) -> Weight;
}
Expand description
Weight functions needed for pallet_im_online
.
Required Methods§
fn validate_unsigned_and_then_heartbeat(k: u32) -> Weight
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl WeightInfo for ()
impl WeightInfo for ()
Source§fn validate_unsigned_and_then_heartbeat(k: u32) -> Weight
fn validate_unsigned_and_then_heartbeat(k: u32) -> Weight
Storage: Session::Validators
(r:1 w:0)
Proof: Session::Validators
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Session::CurrentIndex
(r:1 w:0)
Proof: Session::CurrentIndex
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: ImOnline::Keys
(r:1 w:0)
Proof: ImOnline::Keys
(max_values
: Some(1), max_size
: Some(320002), added: 320497, mode: MaxEncodedLen
)
Storage: ImOnline::ReceivedHeartbeats
(r:1 w:1)
Proof: ImOnline::ReceivedHeartbeats
(max_values
: None, max_size
: Some(25), added: 2500, mode: MaxEncodedLen
)
The range of component k
is [1, 1000]
.