aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorEric Lombrozo <elombrozo@gmail.com>2013-06-23 19:27:02 -0700
committerEric Lombrozo <elombrozo@gmail.com>2013-06-23 19:59:35 -0700
commit2a4d3464fd5e61a3c89a46d12f6729aeeac919f1 (patch)
treeec774b7d131a60b1c2de0b8e544e5a07599976b7 /src/main.h
parent38991ffa8ae627613fadaca8bbc14fcd820e0861 (diff)
Pulled AcceptBlock out of CBlock.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main.h b/src/main.h
index 022c6ad074..f85953c4f2 100644
--- a/src/main.h
+++ b/src/main.h
@@ -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