|
|
@ -28,6 +28,8 @@ struct CBlockIndexWorkComparator; |
|
|
|
static const unsigned int MAX_BLOCK_SIZE = 1000000; |
|
|
|
static const unsigned int MAX_BLOCK_SIZE = 1000000; |
|
|
|
/** The maximum size for mined blocks */ |
|
|
|
/** The maximum size for mined blocks */ |
|
|
|
static const unsigned int MAX_BLOCK_SIZE_GEN = MAX_BLOCK_SIZE/2; |
|
|
|
static const unsigned int MAX_BLOCK_SIZE_GEN = MAX_BLOCK_SIZE/2; |
|
|
|
|
|
|
|
/** The maximum size for transactions we're willing to relay/mine **/ |
|
|
|
|
|
|
|
static const unsigned int MAX_STANDARD_TX_SIZE = MAX_BLOCK_SIZE_GEN/5; |
|
|
|
/** The maximum allowed number of signature check operations in a block (network rule) */ |
|
|
|
/** The maximum allowed number of signature check operations in a block (network rule) */ |
|
|
|
static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50; |
|
|
|
static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50; |
|
|
|
/** The maximum number of orphan transactions kept in memory */ |
|
|
|
/** The maximum number of orphan transactions kept in memory */ |
|
|
|