6 #ifndef BITCOIN_CONSENSUS_CONSENSUS_H 7 #define BITCOIN_CONSENSUS_CONSENSUS_H 13 static const unsigned int MAX_BLOCK_SERIALIZED_SIZE = 4000000;
15 static const unsigned int MAX_BLOCK_WEIGHT = 4000000;
17 static const int64_t MAX_BLOCK_SIGOPS_COST = 80000;
19 static const int COINBASE_MATURITY = 100;
21 static const int WITNESS_SCALE_FACTOR = 4;
23 static const size_t MIN_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 60;
24 static const size_t MIN_SERIALIZABLE_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 10;
28 static constexpr
unsigned int LOCKTIME_VERIFY_SEQUENCE = (1 << 0);
30 static constexpr
unsigned int LOCKTIME_MEDIAN_TIME_PAST = (1 << 1);
32 #endif // BITCOIN_CONSENSUS_CONSENSUS_H