Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • network/gtest-1000 protected
  • upgradable-multisig
  • runtime/gtest-1000
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • hugo/distance-precompute
  • network/gdev-900 protected
  • tuxmain/anonymous-tx
  • debug/podman
  • hugo/195-doc
  • hugo/195-graphql-schema
  • gtest-1000-0.11.0 protected
  • gtest-1000 protected
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
  • runtime-701 protected
  • runtime-700 protected
  • runtime-600 protected
  • runtime-500 protected
  • v0.4.1 protected
40 results

weights-benchmarking.md

Blame
    • Benjamin Gallois's avatar
      cca16dbb
      Eliminate all Instances of `Weight::zero()` (!197) · cca16dbb
      Benjamin Gallois authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * 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
      cca16dbb
      History
      Eliminate all Instances of `Weight::zero()` (!197)
      Benjamin Gallois authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * 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";