LCOV - code coverage report
Current view: top level - src - sporkid.h (source / functions) Hit Total Coverage
Test: total_coverage.info Lines: 1 1 100.0 %
Date: 2025-02-23 09:33:43 Functions: 0 0 -

          Line data    Source code
       1             : // Copyright (c) 2014-2016 The Dash developers
       2             : // Copyright (c) 2016-2022 The PIVX Core developers
       3             : // Distributed under the MIT/X11 software license, see the accompanying
       4             : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
       5             : 
       6             : #ifndef PIVX_SPORKID_H
       7             : #define PIVX_SPORKID_H
       8             : 
       9             : /*
      10             :     Don't ever reuse these IDs for other sporks
      11             :     - This would result in old clients getting confused about which spork is for what
      12             : */
      13             : 
      14             : enum SporkId : int32_t {
      15             :     SPORK_2_SWIFTTX                             = 10001,      // Deprecated in v4.3.99
      16             :     SPORK_3_SWIFTTX_BLOCK_FILTERING             = 10002,      // Deprecated in v4.3.99
      17             :     SPORK_5_MAX_VALUE                           = 10004,      // Deprecated in v5.2.99
      18             :     SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT      = 10007,
      19             :     SPORK_9_MASTERNODE_BUDGET_ENFORCEMENT       = 10008,
      20             :     SPORK_13_ENABLE_SUPERBLOCKS                 = 10012,
      21             :     SPORK_14_NEW_PROTOCOL_ENFORCEMENT           = 10013,
      22             :     SPORK_15_NEW_PROTOCOL_ENFORCEMENT_2         = 10014,
      23             :     SPORK_16_ZEROCOIN_MAINTENANCE_MODE          = 10015,       // Deprecated in 5.2.99
      24             :     SPORK_17_COLDSTAKING_ENFORCEMENT            = 10017,       // Deprecated in 4.3.99
      25             :     SPORK_18_ZEROCOIN_PUBLICSPEND_V4            = 10018,       // Deprecated in 5.2.99
      26             :     SPORK_19_COLDSTAKING_MAINTENANCE            = 10019,
      27             :     SPORK_20_SAPLING_MAINTENANCE                = 10020,
      28             :     SPORK_21_LEGACY_MNS_MAX_HEIGHT              = 10021,
      29             :     SPORK_22_LLMQ_DKG_MAINTENANCE               = 10022,
      30             :     SPORK_23_CHAINLOCKS_ENFORCEMENT             = 10023,
      31             : 
      32             :     SPORK_INVALID                               = -1
      33             : };
      34             : 
      35             : // Default values
      36       19160 : struct CSporkDef
      37             : {
      38             :     CSporkDef(): sporkId(SPORK_INVALID), defaultValue(0) {}
      39             :     CSporkDef(SporkId id, int64_t val, std::string n): sporkId(id), defaultValue(val), name(n) {}
      40             :     SporkId sporkId;
      41             :     int64_t defaultValue;
      42             :     std::string name;
      43             : };
      44             : 
      45             : #endif // PIVX_SPORKID_H

Generated by: LCOV version 1.14