Skip to content
Snippets Groups Projects
Select Git revision
  • bbf45c4fd02da803dc171a2b83ddd565b296594c
  • 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
41 results

file_header.txt

Blame
    • Éloïs's avatar
      57ac5589
      Add weights benchmarks (step 1) (!73) · 57ac5589
      Éloïs authored
      * feat(weights): use our benchmarks for pallet proxy
      
      * feat(weights): use our benchmarks for pallet multisig
      
      * fix(benchmarks): some pallets benchmarking need access to system.remark
      
      * feat(weights): use our benchmarks for pallet timestamp
      
      * feat(weights): use our benchmarks for pallet scheduler
      
      * fix(weights): impl proper weights & benchmarks for pallet upgrade origin
      
      * doc(dev):weights-bench: reference machine should use an SSD with USB3
      
      * style(clippy): allow unnecessary_cast for WeighInfo implementations
      
      * doc(dev): add "how to benchmarks weights of a Call/Hook/Pallet"
      
      * feat(runtimes): use our benchmarks for pallet universal dividend
      
      * feat(pallet_ud): add weights info
      
      * feat(pallet_ud): add benchmarking
      
      * fix(weights): use our own extrinsic base weights constant
      
      * feat(weights): use our benchmarks for frame_system
      
      * feat(weights): use our benchmarks for pallet balance
      
      * fix(accounts): providers should be inc as soon as the account recv money
      
      providers should be incremented as soon as the account receive funds
      
      * fix(gdev): fix runtime benchmarks compilation
      57ac5589
      History
      Add weights benchmarks (step 1) (!73)
      Éloïs authored
      * feat(weights): use our benchmarks for pallet proxy
      
      * feat(weights): use our benchmarks for pallet multisig
      
      * fix(benchmarks): some pallets benchmarking need access to system.remark
      
      * feat(weights): use our benchmarks for pallet timestamp
      
      * feat(weights): use our benchmarks for pallet scheduler
      
      * fix(weights): impl proper weights & benchmarks for pallet upgrade origin
      
      * doc(dev):weights-bench: reference machine should use an SSD with USB3
      
      * style(clippy): allow unnecessary_cast for WeighInfo implementations
      
      * doc(dev): add "how to benchmarks weights of a Call/Hook/Pallet"
      
      * feat(runtimes): use our benchmarks for pallet universal dividend
      
      * feat(pallet_ud): add weights info
      
      * feat(pallet_ud): add benchmarking
      
      * fix(weights): use our own extrinsic base weights constant
      
      * feat(weights): use our benchmarks for frame_system
      
      * feat(weights): use our benchmarks for pallet balance
      
      * fix(accounts): providers should be inc as soon as the account recv money
      
      providers should be incremented as soon as the account receive funds
      
      * fix(gdev): fix runtime benchmarks compilation
    lib.rs 2.89 KiB
    //  Copyright (C) 2020 Éloïs SANCHEZ.
    //
    // 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/>.
    
    #![deny(
        clippy::unwrap_used,
        missing_copy_implementations,
        trivial_casts,
        trivial_numeric_casts,
        unstable_features,
        unused_import_braces
    )]
    
    mod keys;
    mod values;
    
    pub use keys::gva_utxo_id::GvaUtxoIdDbV1;
    pub use keys::wallet_hash_with_bn::WalletHashWithBnV1Db;
    pub use values::gva_block_db::GvaBlockDbV1;
    pub use values::gva_idty_db::GvaIdtyDbV1;
    pub use values::gva_tx::GvaTxDbV1;
    pub use values::wallet_script_array::WalletScriptArrayV2;
    pub use values::HashDb;
    
    pub(crate) use bincode::Options as _;
    pub(crate) use dubp::common::prelude::*;
    pub(crate) use dubp::crypto::hashs::Hash;
    pub(crate) use dubp::wallet::prelude::*;
    pub(crate) use duniter_core::dbs::kv_typed;
    pub(crate) use duniter_core::dbs::kv_typed::db_schema;
    pub(crate) use duniter_core::dbs::kv_typed::prelude::*;
    pub(crate) use duniter_core::dbs::smallvec::SmallVec;
    pub(crate) use duniter_core::dbs::{
        bincode_db, CorruptedBytes, HashKeyV2, PubKeyKeyV2, SourceAmountValV2, ToDumpString,
        WalletConditionsV2,
    };
    pub(crate) use duniter_core::wot::WotId;
    pub(crate) use serde::{Deserialize, Serialize};
    pub(crate) use std::collections::BTreeSet;
    
    db_schema!(
        GvaV1,
        [
            ["balances", Balances, WalletConditionsV2, SourceAmountValV2],
            ["blocks_by_common_time", BlocksByCommonTime, U64BE, u32],
            ["blocks_with_ud", BlocksWithUd, U32BE, ()],
            ["blockchain_time", BlockchainTime, U32BE, u64],
            ["blocks_chunk_hash", BlocksChunkHash, U32BE, HashDb],
            ["compressed_blocks_chunk", CompressedBlocksChunk, U32BE, Vec<u8>],
            ["current_blocks_chunk", CurrentBlocksChunk, U32BE, GvaBlockDbV1],
            ["gva_identities", GvaIdentities, PubKeyKeyV2, GvaIdtyDbV1],
            [
                "gva_utxos",
                GvaUtxos,
                GvaUtxoIdDbV1,
                SourceAmountValV2
            ],
            [
                "scripts_by_pubkey",
                ScriptsByPubkey,
                PubKeyKeyV2,
                WalletScriptArrayV2
            ],
            ["txs", Txs, HashKeyV2, GvaTxDbV1],
            ["txs_by_block", TxsByBlock, U32BE, Vec<Hash>],
            ["txs_by_issuer", TxsByIssuer, WalletHashWithBnV1Db, BTreeSet<Hash>],
            ["txs_by_recipient", TxsByRecipient, WalletHashWithBnV1Db, BTreeSet<Hash>],
        ]
    );