Skip to content

Commit 7e1032f

Browse files
authored
Update consensus.h
1 parent b81d5da commit 7e1032f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/consensus/consensus.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
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 = 400000000;
13+
static const unsigned int MAX_BLOCK_SERIALIZED_SIZE = 100000000;
1414
/** The maximum allowed weight for a block, see BIP 141 (network rule) */
15-
static const unsigned int MAX_BLOCK_WEIGHT = 400000000;
15+
static const unsigned int MAX_BLOCK_WEIGHT = 100000000;
1616
/** The maximum allowed number of signature check operations in a block (network rule) */
17-
static const int64_t MAX_BLOCK_SIGOPS_COST = 8000000;
17+
static const int64_t MAX_BLOCK_SIGOPS_COST = 2000000;
1818
/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
1919
static const int COINBASE_MATURITY = 100;
2020

21-
static const int WITNESS_SCALE_FACTOR = 4;
21+
static const int WITNESS_SCALE_FACTOR = 100;
2222

2323
static const size_t MIN_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 60; // 60 is the lower bound for the size of a valid serialized CTransaction
2424
static const size_t MIN_SERIALIZABLE_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 10; // 10 is the lower bound for the size of a serialized CTransaction

0 commit comments

Comments
 (0)