mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 13:27:57 +00:00
Whitelist Transactional key (#11394)
* Make constants public Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Whitelist the transactional layer Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/nomination-pools/src/weights.rs --template=./.maintain/frame-weight-template.hbs Co-authored-by: Parity Bot <admin@parity.io>
This commit is contained in:
committed by
GitHub
parent
d06d20d65b
commit
0873e1703b
@@ -30,11 +30,11 @@ use sp_io::storage::{commit_transaction, rollback_transaction, start_transaction
|
||||
use sp_runtime::{DispatchError, TransactionOutcome, TransactionalError};
|
||||
|
||||
/// The type that is being used to store the current number of active layers.
|
||||
type Layer = u32;
|
||||
pub type Layer = u32;
|
||||
/// The key that is holds the current number of active layers.
|
||||
const TRANSACTION_LEVEL_KEY: &[u8] = b":transaction_level:";
|
||||
pub const TRANSACTION_LEVEL_KEY: &[u8] = b":transaction_level:";
|
||||
/// The maximum number of nested layers.
|
||||
const TRANSACTIONAL_LIMIT: Layer = 255;
|
||||
pub const TRANSACTIONAL_LIMIT: Layer = 255;
|
||||
|
||||
/// Returns the current number of nested transactional layers.
|
||||
fn get_transaction_level() -> Layer {
|
||||
|
||||
Reference in New Issue
Block a user