PRCYCoin  2.0.0.7rc1
P2P Digital Currency
consensus.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2016 The Bitcoin Core developers
3 // Copyright (c) 2019 The PIVX developers
4 // Distributed under the MIT software license, see the accompanying
5 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 
7 #ifndef BITCOIN_CONSENSUS_CONSENSUS_H
8 #define BITCOIN_CONSENSUS_CONSENSUS_H
9 
10 #include <stdint.h>
11 
13 static const unsigned int MAX_BLOCK_SIZE_CURRENT = 2000000;
14 static const unsigned int MAX_BLOCK_SIZE_LEGACY = 1000000;
15 
17 static const unsigned int MAX_BLOCK_SIGOPS_CURRENT = MAX_BLOCK_SIZE_CURRENT / 50;
18 static const unsigned int MAX_BLOCK_SIGOPS_LEGACY = MAX_BLOCK_SIZE_LEGACY / 50;
19 
21 static const unsigned int MAX_TX_SIGOPS_CURRENT = MAX_BLOCK_SIGOPS_CURRENT / 5;
22 static const unsigned int MAX_TX_SIGOPS_LEGACY = MAX_BLOCK_SIGOPS_LEGACY / 5;
23 
25 enum {
26  /* Interpret sequence numbers as relative lock-time constraints. */
28 
29  /* Use GetMedianTimePast() instead of nTime for end point timestamp. */
31 };
32 
33 #endif // BITCOIN_CONSENSUS_CONSENSUS_H
LOCKTIME_VERIFY_SEQUENCE
@ LOCKTIME_VERIFY_SEQUENCE
Definition: consensus.h:27
LOCKTIME_MEDIAN_TIME_PAST
@ LOCKTIME_MEDIAN_TIME_PAST
Definition: consensus.h:30