Skip to content
Snippets Groups Projects
Select Git revision
  • a28fa5b6c8b2346c760c85f38e0246023ade8126
  • dev default protected
  • vainamoinen197-transactiondocument-replace-vec-fields-by-smallvec-2
  • dvermd/200-keypairs-dewif
  • elois/wot
  • jawaka/155-dbex-add-dump-fork-tree-command
  • elois/195-bcdbwriteop
  • elois/deps-crypto
  • elois/gva-monetary-mass
  • elois/191-sled
  • elois/195
  • ji_emme/gva-humantimefield
  • 184-gva-rename-commontime-field-to-blockchaintime
  • ji_emme/182-gva-implement-block-meta-data
  • ji_emme/rml14
  • hugo/151-ws2pv2-sync
  • ji_emme/181-gva-implement-identity-request
  • ji_emme/89-implement-client-api-gva-graphql-verification-api
  • logo
  • test-juniper-from-schema
  • elois/exemple-gva-global-context
  • v0.2.0-a4 protected
  • v0.2.0-a2 protected
  • v0.2.0-a protected
  • v0.1.1-a1 protected
  • documents/v0.10.0-b1 protected
  • crypto/v0.4.0-b1 protected
  • crypto/v0.3.0-b3 protected
  • crypto/v0.3.0-b2 protected
  • crypto/v0.3.0-b1 protected
  • wot/v0.8.0-a0.9 protected
  • wot/v0.8.0-a0.8 protected
  • 0.1.0-a0.1 protected
  • v0.0.1-a0.12 protected
  • v0.0.1-a0.11 protected
  • v0.0.1-a0.10 protected
  • v0.0.1-a0.9 protected
  • v0.0.1-a0.8 protected
  • v0.0.1-a0.7 protected
  • v0.0.1-a0.6 protected
  • v0.0.1-a0.5 protected
41 results

constants.rs

Blame
  • 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";