7 #ifndef PIVX_CONSENSUS_CONSENSUS_H
8 #define PIVX_CONSENSUS_CONSENSUS_H
14 static const unsigned int MAX_BLOCK_SIZE_CURRENT = 2000000;
15 static const unsigned int MAX_BLOCK_SIZE_LEGACY = 1000000;
18 static const unsigned int MAX_TX_SIZE_AFTER_SAPLING = 400000;
21 static const unsigned int MAX_BLOCK_SHIELDED_TXES_SIZE = 750000;
24 static const unsigned int MAX_BLOCK_SIGOPS_CURRENT = MAX_BLOCK_SIZE_CURRENT / 50;
25 static const unsigned int MAX_BLOCK_SIGOPS_LEGACY = MAX_BLOCK_SIZE_LEGACY / 50;
28 static const unsigned int MAX_TX_SIGOPS_CURRENT = MAX_BLOCK_SIGOPS_CURRENT / 5;
29 static const unsigned int MAX_TX_SIGOPS_LEGACY = MAX_BLOCK_SIGOPS_LEGACY / 5;
32 static const CAmount MIN_COLDSTAKING_AMOUNT = 1 * COIN;
35 static const int DEFAULT_MAX_REORG_DEPTH = 100;
39 static constexpr
unsigned int LOCKTIME_VERIFY_SEQUENCE = (1 << 0);
41 static constexpr
unsigned int LOCKTIME_MEDIAN_TIME_PAST = (1 << 1);
int64_t CAmount
Amount in PIV (Can be negative)