referrerpolicy=no-referrer-when-downgrade
pallet_bridge_relayers

Trait WeightInfoExt

Source
pub trait WeightInfoExt: WeightInfo {
    // Provided methods
    fn receive_messages_proof_overhead_from_runtime() -> Weight { ... }
    fn receive_messages_delivery_proof_overhead_from_runtime() -> Weight { ... }
    fn extra_weight_of_successful_receive_messages_proof_call() -> Weight { ... }
}
Expand description

Extended weight info.

Provided Methods§

Source

fn receive_messages_proof_overhead_from_runtime() -> Weight

Returns weight, that needs to be added to the pre-dispatch weight of message delivery call, if BridgeRelayersTransactionExtension signed extension is deployed at runtime level.

Source

fn receive_messages_delivery_proof_overhead_from_runtime() -> Weight

Returns weight, that needs to be added to the pre-dispatch weight of message delivery confirmation call, if BridgeRelayersTransactionExtension signed extension is deployed at runtime level.

Source

fn extra_weight_of_successful_receive_messages_proof_call() -> Weight

Returns weight that we need to deduct from the message delivery call weight that has completed successfully.

Usually, the weight of slash_and_deregister is larger than the weight of the register_relayer_reward. So if relayer has been rewarded, we want to deduct the difference to get the actual post-dispatch 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.

Implementors§