6 #ifndef FABCOIN_CONSENSUS_CONSENSUS_H 7 #define FABCOIN_CONSENSUS_CONSENSUS_H 22 static const int MAX_TRANSACTION_BASE_SIZE = 2000000;
25 static const unsigned int MAX_BLOCK_SERIALIZED_SIZE = 8000000;
28 static const unsigned int MAX_BLOCK_WEIGHT = 8000000;
30 static const int64_t MAX_BLOCK_SIGOPS_COST = 80000;
32 static const int COINBASE_MATURITY = 800;
34 static const int INITIAL_BLOCK_REWARD = 25;
35 static const int INITIAL_BLOCK_REWARD_REGTEST = 20000;
37 static const int WITNESS_SCALE_FACTOR = 4;
39 static const size_t MIN_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 60;
40 static const size_t MIN_SERIALIZABLE_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 10;
52 #endif // FABCOIN_CONSENSUS_CONSENSUS_H unsigned int dgpMaxBlockBaseSize
The maximum allowed size for a block excluding witness data, in bytes (network rule) ...
unsigned int dgpMaxBlockSize
unsigned int dgpMaxProtoMsgLength
unsigned int dgpMaxBlockSerSize
The maximum allowed size for a serialized block, in bytes (only for buffer size limits) ...
void updateBlockSizeParams(unsigned int newBlockSize)
int64_t dgpMaxBlockSigOps
The maximum allowed number of signature check operations in a block (network rule) ...
unsigned int dgpMaxTxSigOps
unsigned int dgpMaxBlockWeight
The maximum allowed weight for a block, see BIP 141 (network rule)