Pulled AcceptBlock out of CBlock.

This commit is contained in:
Eric Lombrozo
2013-06-23 19:27:02 -07:00
parent 38991ffa8a
commit 2a4d3464fd
2 changed files with 20 additions and 21 deletions

View File

@@ -701,11 +701,6 @@ public:
printf("%s ", vMerkleTree[i].ToString().c_str());
printf("\n");
}
// Store block on disk
// if dbp is provided, the file is known to already reside on disk
bool AcceptBlock(CValidationState &state, CDiskBlockPos *dbp = NULL);
};
@@ -732,6 +727,10 @@ bool AddToBlockIndex(CBlock& block, CValidationState& state, const CDiskBlockPos
// Context-independent validity checks
bool CheckBlock(const CBlock& block, CValidationState& state, bool fCheckPOW = true, bool fCheckMerkleRoot = true);
// Store block on disk
// if dbp is provided, the file is known to already reside on disk
bool AcceptBlock(CBlock& block, CValidationState& state, CDiskBlockPos* dbp = NULL);
class CBlockFileInfo