Select Git revision
-
* refactor functions naming for pallet-membership * refactor functions naming for pallet-certification * fix tests with runtime-benchmark feature * fix compilation with runtime-benchmarks feature * update documentation * remove handlers weights for pallet_membership * remove handlers weights for pallet_identity * remove handlers weights for pallet_certification * add best practices for benchmarking * add hooks benchmark pallet_universal_dividend * add missing benchmarks pallet_universal_dividend * update weights * fix pallet_provide_randomness on_initialize weight * fix pallet_identity weight::zero * fix pallet_membership weight::zero * fix pallet_certification weight::zero * fix pallet_authority_members weight::zero * fix pallet_identity weight::zero * fix pallet_membership weight::zero
* refactor functions naming for pallet-membership * refactor functions naming for pallet-certification * fix tests with runtime-benchmark feature * fix compilation with runtime-benchmarks feature * update documentation * remove handlers weights for pallet_membership * remove handlers weights for pallet_identity * remove handlers weights for pallet_certification * add best practices for benchmarking * add hooks benchmark pallet_universal_dividend * add missing benchmarks pallet_universal_dividend * update weights * fix pallet_provide_randomness on_initialize weight * fix pallet_identity weight::zero * fix pallet_membership weight::zero * fix pallet_certification weight::zero * fix pallet_authority_members weight::zero * fix pallet_identity weight::zero * fix pallet_membership weight::zero
constants.rs 2.28 KiB
// Copyright (C) 2017-2019 The AXIOM TEAM Association.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//! Define BlockChain database constants needed for read operations.
/// Default page size for requests responses
pub static DEFAULT_PAGE_SIZE: &usize = &50;
////////////////////////////////
// BLOCKCHAIN DATABASE STORES //
////////////////////////////////
/// Current meta datas (CurrentMetaDataKey, ?)
pub static CURRENT_METAS_DATAS: &str = "cmd";
/// Current frame members datas (MemberFrameInfo {last_personal_block_number: BlockNumber,nb_personal_blocks_in_frame: usize,personal_difficulty: PersonalDifficulty,})
pub static CURRENT_FRAME_MEMBERS: &str = "cfm";
/// Fork blocks referenced in tree or in orphan blockstamps (Blockstamp, DbBlock)
pub static FORK_BLOCKS: &str = "fb";
/// Blocks in main branch (BlockNumber, DbBlock)
pub static MAIN_BLOCKS: &str = "bc";
/// Blockstamp orphaned (no parent block) indexed by their previous blockstamp (PreviousBlockstamp, Vec<Blockstamp>)
pub static ORPHAN_BLOCKSTAMP: &str = "ob";
/// Wot id index (PubKey, WotId)
pub static WOT_ID_INDEX: &str = "wii";
/// Identities (WotId, DbIdentity)
pub static IDENTITIES: &str = "idty";
/// Memberships sorted by created block (BlockNumber, Vec<WotId>)
pub static MBS_BY_CREATED_BLOCK: &str = "mb";
/// Certifications sorted by created block (BlockNumber, Vec<(WotId, WotId))
pub static CERTS_BY_CREATED_BLOCK: &str = "cert";
/// Unused universal dividends
pub static DIVIDENDS: &str = "du";
/// Unused Transaction Output (UniqueIdUTXOv10, TransactionOutput)
pub static UTXOS: &str = "utxo";
/// Consumed UTXOs (BlockNumber, UTXO)
/// Used only to revert a block
pub static CONSUMED_UTXOS: &str = "cutxo";