text: // Copyright (c) 2009-2010 Satoshi Nakamoto
  // Copyright (c) 2009-2016 The Bitcoin Core developers
  // Copyright (c) 2019-2020 The PIVX developers
  // Copyright (c) 2020 The CRYPTCORE developers
  // Distributed under the MIT software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  #ifndef BITCOIN_CONSENSUS_CONSENSUS_H
  #define BITCOIN_CONSENSUS_CONSENSUS_H
  
  #include "amount.h"
  #include <stdint.h>
  
  /** The maximum allowed size for a block, in bytes (only for buffer size limits) */
  static const unsigned int MAX_BLOCK_SIZE_CURRENT = 2000000;
  static const unsigned int MAX_BLOCK_SIZE_LEGACY = 1000000;
  
  /** The maximum allowed number of signature check operations in a block (network rule) */
  static const unsigned int MAX_BLOCK_SIGOPS_CURRENT = MAX_BLOCK_SIZE_CURRENT / 50;
  static const unsigned int MAX_BLOCK_SIGOPS_LEGACY = MAX_BLOCK_SIZE_LEGACY / 50;
  
  /** The maximum number of sigops we're willing to relay/mine in a single tx */
  static const unsigned int MAX_TX_SIGOPS_CURRENT = MAX_BLOCK_SIGOPS_CURRENT / 5;
  static const unsigned int MAX_TX_SIGOPS_LEGACY = MAX_BLOCK_SIGOPS_LEGACY / 5;
  
  /** The minimum amount for the value of a P2CS output */
  static const CAmount MIN_COLDSTAKING_AMOUNT = 1 * COIN;
  
  /** The default maximum reorganization depth **/
  static const int DEFAULT_MAX_REORG_DEPTH = 100;
  
  /** Flags for nSequence and nLockTime locks */
  enum {
      /* Interpret sequence numbers as relative lock-time constraints. */
      LOCKTIME_VERIFY_SEQUENCE = (1 << 0),
  
      /* Use GetMedianTimePast() instead of nTime for end point timestamp. */
      LOCKTIME_MEDIAN_TIME_PAST = (1 << 1),
  };
  
  #endif // BITCOIN_CONSENSUS_CONSENSUS_H
  