aboutsummaryrefslogtreecommitdiff
path: root/src/primitives/block.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-12-05 16:50:11 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-12-05 16:50:48 +0100
commitb5fa132329f0377d787a4a21c1686609c2bfaece (patch)
tree658ad8553bef39906e91693e0ac9e90b32cbb6ae /src/primitives/block.h
parent4c83c0e7c8c9ecbcf69c882e2d68a306b726e67b (diff)
parentafd4b94b6dabab29dee5a12966ce217700381682 (diff)
downloadbitcoin-b5fa132329f0377d787a4a21c1686609c2bfaece.tar.xz
Merge pull request #5181
afd4b94 Move CMerkleBlock and CPartialMerkleTree to their own file (Matt Corallo)
Diffstat (limited to 'src/primitives/block.h')
-rw-r--r--src/primitives/block.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/primitives/block.h b/src/primitives/block.h
index e663c91e84..a189592539 100644
--- a/src/primitives/block.h
+++ b/src/primitives/block.h
@@ -10,6 +10,9 @@
#include "serialize.h"
#include "uint256.h"
+/** The maximum allowed size for a serialized block, in bytes (network rule) */
+static const unsigned int MAX_BLOCK_SIZE = 1000000;
+
/** Nodes collect new transactions into a block, hash them into a hash tree,
* and scan through nonce values to make the block's hash satisfy proof-of-work
* requirements. When they solve the proof-of-work, they broadcast the block