aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-03-19 12:09:27 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-03-19 14:20:43 -0400
commitfa11c036e97f18d31cffaf7430fbe84fe44efbcc (patch)
tree08ceea315665fd53946619a3ca45985cdb0ecce6 /src/validation.h
parent2c336a9ccdf4434a0c80b83ea348bdfff9cea62b (diff)
downloadbitcoin-fa11c036e97f18d31cffaf7430fbe84fe44efbcc.tar.xz
refactor: Expose UndoReadFromDisk in header
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/validation.h b/src/validation.h
index 0acca013b5..d84e3a0dbc 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -21,6 +21,7 @@
#include <versionbits.h>
#include <algorithm>
+#include <atomic>
#include <exception>
#include <map>
#include <memory>
@@ -30,10 +31,9 @@
#include <utility>
#include <vector>
-#include <atomic>
-
class CBlockIndex;
class CBlockTreeDB;
+class CBlockUndo;
class CChainParams;
class CCoinsViewDB;
class CInv;
@@ -391,6 +391,8 @@ bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex, const Consensus
bool ReadRawBlockFromDisk(std::vector<uint8_t>& block, const FlatFilePos& pos, const CMessageHeader::MessageStartChars& message_start);
bool ReadRawBlockFromDisk(std::vector<uint8_t>& block, const CBlockIndex* pindex, const CMessageHeader::MessageStartChars& message_start);
+bool UndoReadFromDisk(CBlockUndo& blockundo, const CBlockIndex* pindex);
+
/** Functions for validating blocks and updating the block tree */
/** Context-independent validity checks */