7 #ifndef RAVEN_CONSENSUS_CONSENSUS_H 8 #define RAVEN_CONSENSUS_CONSENSUS_H 14 static const unsigned int MAX_BLOCK_SERIALIZED_SIZE = 4000000;
16 static const unsigned int MAX_BLOCK_WEIGHT = 4000000;
19 static const unsigned int MAX_BLOCK_WEIGHT_RIP2 = 8000000;
22 static const unsigned int MAX_BLOCK_SERIALIZED_SIZE_RIP2 = 8000000;
25 static const int64_t MAX_BLOCK_SIGOPS_COST = 80000;
27 static const int COINBASE_MATURITY = 100;
29 static const int WITNESS_SCALE_FACTOR = 4;
31 static const size_t MIN_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 60;
32 static const size_t MIN_SERIALIZABLE_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 10;
34 #define UNUSED_VAR __attribute__ ((unused)) 35 UNUSED_VAR static bool fAssetsIsActive =
false;
38 UNUSED_VAR static bool fMessagesIsActive =
false;
39 UNUSED_VAR static bool fRestrictedAssetsIsActive =
false;
53 #endif // RAVEN_CONSENSUS_CONSENSUS_H
unsigned int GetMaxBlockSerializedSize()
unsigned int GetMaxBlockWeight()