mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 20:31:13 +00:00
Whitelist 'intrablock_entropy' (#14489)
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
4137aa687d
commit
234ceca1cc
@@ -1060,6 +1060,11 @@ macro_rules! impl_benchmark {
|
||||
$crate::well_known_keys::EXTRINSIC_INDEX.into()
|
||||
);
|
||||
whitelist.push(extrinsic_index);
|
||||
// Whitelist the `:intrablock_entropy`.
|
||||
let intrablock_entropy = $crate::TrackedStorageKey::new(
|
||||
$crate::well_known_keys::INTRABLOCK_ENTROPY.into()
|
||||
);
|
||||
whitelist.push(intrablock_entropy);
|
||||
|
||||
$crate::benchmarking::set_whitelist(whitelist.clone());
|
||||
|
||||
|
||||
@@ -551,6 +551,12 @@ pub fn benchmarks(
|
||||
#krate::well_known_keys::EXTRINSIC_INDEX.into()
|
||||
);
|
||||
whitelist.push(extrinsic_index);
|
||||
// Whitelist the `:intrablock_entropy`.
|
||||
let intrablock_entropy = #krate::TrackedStorageKey::new(
|
||||
#krate::well_known_keys::INTRABLOCK_ENTROPY.into()
|
||||
);
|
||||
whitelist.push(intrablock_entropy);
|
||||
|
||||
#krate::benchmarking::set_whitelist(whitelist.clone());
|
||||
let mut results: #krate::Vec<#krate::BenchmarkResult> = #krate::Vec::new();
|
||||
|
||||
|
||||
@@ -205,6 +205,8 @@ pub mod well_known_keys {
|
||||
pub const EXTRINSIC_INDEX: &[u8] = b":extrinsic_index";
|
||||
|
||||
/// Current intra-block entropy (a universally unique `[u8; 32]` value) is stored here.
|
||||
///
|
||||
/// Encodes to `0x3a696e747261626c6f636b5f656e74726f7079`.
|
||||
pub const INTRABLOCK_ENTROPY: &[u8] = b":intrablock_entropy";
|
||||
|
||||
/// Prefix of child storage keys.
|
||||
|
||||
Reference in New Issue
Block a user