Skip to content

Commit 399b781

Browse files
authored
Fix incorrect block size.
1 parent d4b9072 commit 399b781

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/consensus/consensus.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
#include <stdint.h>
1111

1212
/** The maximum allowed size for a serialized block, in bytes (only for buffer size limits) */
13-
static const unsigned int MAX_BLOCK_SERIALIZED_SIZE = 4000000000;
13+
static const unsigned int MAX_BLOCK_SERIALIZED_SIZE = 400000000;
1414
/** The maximum allowed weight for a block, see BIP 141 (network rule) */
15-
static const unsigned int MAX_BLOCK_WEIGHT = 4000000000;
15+
static const unsigned int MAX_BLOCK_WEIGHT = 400000000;
1616
/** The maximum allowed number of signature check operations in a block (network rule) */
17-
static const int64_t MAX_BLOCK_SIGOPS_COST = 80000000;
17+
static const int64_t MAX_BLOCK_SIGOPS_COST = 8000000;
1818
/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
1919
static const int COINBASE_MATURITY = 100;
2020

0 commit comments

Comments
 (0)