You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

consensus.h 943B

12345678910111213141516171819202122
  1. // Copyright (c) 2009-2010 Satoshi Nakamoto
  2. // Copyright (c) 2009-2015 The Bitcoin Core developers
  3. // Distributed under the MIT software license, see the accompanying
  4. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  5. #ifndef BITCOIN_CONSENSUS_CONSENSUS_H
  6. #define BITCOIN_CONSENSUS_CONSENSUS_H
  7. /** The maximum allowed size for a serialized block, in bytes (network rule) */
  8. static const unsigned int MAX_BLOCK_SIZE = 1000000;
  9. /** The maximum allowed number of signature check operations in a block (network rule) */
  10. static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50;
  11. /** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
  12. static const int COINBASE_MATURITY = 100;
  13. /** Flags for LockTime() */
  14. enum {
  15. /* Use GetMedianTimePast() instead of nTime for end point timestamp. */
  16. LOCKTIME_MEDIAN_TIME_PAST = (1 << 1),
  17. };
  18. #endif // BITCOIN_CONSENSUS_CONSENSUS_H