Move CMerkleBlock and CPartialMerkleTree to their own file

This commit is contained in:
Matt Corallo
2014-10-30 15:50:15 -07:00
parent a0417b8cc8
commit afd4b94b6d
9 changed files with 318 additions and 294 deletions

View File

@@ -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