Trait btc_relay::WeightInfo
source · pub trait WeightInfo {
// Required methods
fn initialize() -> Weight;
fn store_block_header() -> Weight;
fn store_block_header_new_fork_sorted(f: u32) -> Weight;
fn store_block_header_new_fork_unsorted(f: u32) -> Weight;
fn store_block_header_reorganize_chains(f: u32) -> Weight;
}
Expand description
Weight functions needed for btc_relay.
Required Methods§
fn initialize() -> Weight
fn store_block_header() -> Weight
fn store_block_header_new_fork_sorted(f: u32) -> Weight
fn store_block_header_new_fork_unsorted(f: u32) -> Weight
fn store_block_header_reorganize_chains(f: u32) -> Weight
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn initialize() -> Weight
fn initialize() -> Weight
Storage: BTCRelay BestBlock (r:1 w:1) Proof: BTCRelay BestBlock (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: BTCRelay DisableDifficultyCheck (r:1 w:0) Proof: BTCRelay DisableDifficultyCheck (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: BTCRelay ChainCounter (r:1 w:1) Proof: BTCRelay ChainCounter (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay Chains (r:1 w:1) Proof: BTCRelay Chains (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen) Storage: Security ActiveBlockCount (r:1 w:0) Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay ChainsHashes (r:0 w:1) Proof: BTCRelay ChainsHashes (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen) Storage: BTCRelay StartBlockHeight (r:0 w:1) Proof: BTCRelay StartBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay BestBlockHeight (r:0 w:1) Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay ChainsIndex (r:0 w:1) Proof: BTCRelay ChainsIndex (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen) Storage: BTCRelay BlockHeaders (r:0 w:1) Proof: BTCRelay BlockHeaders (max_values: None, max_size: Some(200), added: 2675, mode: MaxEncodedLen)
source§fn store_block_header() -> Weight
fn store_block_header() -> Weight
Storage: BTCRelay ChainCounter (r:1 w:0) Proof: BTCRelay ChainCounter (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay BlockHeaders (r:2 w:1) Proof: BTCRelay BlockHeaders (max_values: None, max_size: Some(200), added: 2675, mode: MaxEncodedLen) Storage: BTCRelay ChainsIndex (r:1 w:1) Proof: BTCRelay ChainsIndex (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen) Storage: BTCRelay DisableDifficultyCheck (r:1 w:0) Proof: BTCRelay DisableDifficultyCheck (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: BTCRelay ChainsHashes (r:1 w:1) Proof: BTCRelay ChainsHashes (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen) Storage: Security ActiveBlockCount (r:1 w:0) Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay BestBlock (r:0 w:1) Proof: BTCRelay BestBlock (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: BTCRelay BestBlockHeight (r:0 w:1) Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
source§fn store_block_header_new_fork_sorted(f: u32) -> Weight
fn store_block_header_new_fork_sorted(f: u32) -> Weight
Storage: BTCRelay ChainCounter (r:1 w:1)
Proof: BTCRelay ChainCounter (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: BTCRelay BlockHeaders (r:2 w:1)
Proof: BTCRelay BlockHeaders (max_values: None, max_size: Some(200), added: 2675, mode: MaxEncodedLen)
Storage: BTCRelay ChainsIndex (r:6 w:1)
Proof: BTCRelay ChainsIndex (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen)
Storage: BTCRelay DisableDifficultyCheck (r:1 w:0)
Proof: BTCRelay DisableDifficultyCheck (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
Storage: BTCRelay Chains (r:7 w:1)
Proof: BTCRelay Chains (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
Storage: Security ActiveBlockCount (r:1 w:0)
Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: BTCRelay BestBlock (r:1 w:0)
Proof: BTCRelay BestBlock (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: BTCRelay ChainsHashes (r:0 w:1)
Proof: BTCRelay ChainsHashes (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
The range of component f
is [1, 6]
.
source§fn store_block_header_new_fork_unsorted(f: u32) -> Weight
fn store_block_header_new_fork_unsorted(f: u32) -> Weight
Storage: BTCRelay ChainCounter (r:1 w:1)
Proof: BTCRelay ChainCounter (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: BTCRelay BlockHeaders (r:2 w:1)
Proof: BTCRelay BlockHeaders (max_values: None, max_size: Some(200), added: 2675, mode: MaxEncodedLen)
Storage: BTCRelay ChainsIndex (r:2 w:1)
Proof: BTCRelay ChainsIndex (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen)
Storage: BTCRelay DisableDifficultyCheck (r:1 w:0)
Proof: BTCRelay DisableDifficultyCheck (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
Storage: BTCRelay Chains (r:7 w:6)
Proof: BTCRelay Chains (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
Storage: Security ActiveBlockCount (r:1 w:0)
Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: BTCRelay BestBlock (r:1 w:0)
Proof: BTCRelay BestBlock (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: BTCRelay ChainsHashes (r:0 w:1)
Proof: BTCRelay ChainsHashes (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
The range of component f
is [1, 6]
.
source§fn store_block_header_reorganize_chains(f: u32) -> Weight
fn store_block_header_reorganize_chains(f: u32) -> Weight
Storage: BTCRelay ChainCounter (r:1 w:0)
Proof: BTCRelay ChainCounter (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: BTCRelay BlockHeaders (r:20 w:18)
Proof: BTCRelay BlockHeaders (max_values: None, max_size: Some(200), added: 2675, mode: MaxEncodedLen)
Storage: BTCRelay ChainsIndex (r:3 w:2)
Proof: BTCRelay ChainsIndex (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen)
Storage: BTCRelay DisableDifficultyCheck (r:1 w:0)
Proof: BTCRelay DisableDifficultyCheck (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
Storage: BTCRelay ChainsHashes (r:13 w:24)
Proof: BTCRelay ChainsHashes (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
Storage: Security ActiveBlockCount (r:1 w:0)
Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: BTCRelay Chains (r:6 w:0)
Proof: BTCRelay Chains (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
Storage: BTCRelay StableBitcoinConfirmations (r:1 w:0)
Proof: BTCRelay StableBitcoinConfirmations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: BTCRelay BestBlock (r:0 w:1)
Proof: BTCRelay BestBlock (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: BTCRelay BestBlockHeight (r:0 w:1)
Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
The range of component f
is [3, 6]
.