diff options
| author | Matt Corallo <[email protected]> | 2014-10-30 15:50:15 -0700 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2014-12-05 01:57:40 -0800 |
| commit | afd4b94b6dabab29dee5a12966ce217700381682 (patch) | |
| tree | 7bc8f939bfcc098341f8f222fe44e039fba3dd00 /src/primitives | |
| parent | Merge pull request #5306 (diff) | |
| download | discoin-afd4b94b6dabab29dee5a12966ce217700381682.tar.xz discoin-afd4b94b6dabab29dee5a12966ce217700381682.zip | |
Move CMerkleBlock and CPartialMerkleTree to their own file
Diffstat (limited to 'src/primitives')
| -rw-r--r-- | src/primitives/block.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/primitives/block.h b/src/primitives/block.h index e663c91e8..a18959253 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 |