diff options
author | jtimon <jtimon@blockstream.io> | 2014-10-27 14:42:49 +0100 |
---|---|---|
committer | jtimon <jtimon@jtimon.cc> | 2014-12-27 16:01:31 +0100 |
commit | 937ba572d0758891f43c658d7d98d7bd747c3ce4 (patch) | |
tree | b88f675d571a636c0d5fd638b802257419f2444a | |
parent | e035c6a7371027fe33c460ee2d0946a7f1e4e592 (diff) |
MOVEONLY: CBlockUndo from main.h to undo.h
-rw-r--r-- | src/main.cpp | 1 | ||||
-rw-r--r-- | src/main.h | 16 | ||||
-rw-r--r-- | src/undo.h | 14 |
3 files changed, 15 insertions, 16 deletions
diff --git a/src/main.cpp b/src/main.cpp index ec24e55ce1..24ed487af0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,6 +17,7 @@ #include "txdb.h" #include "txmempool.h" #include "ui_interface.h" +#include "undo.h" #include "util.h" #include "utilmoneystr.h" diff --git a/src/main.h b/src/main.h index 7d6c293a3f..9049f5bb7d 100644 --- a/src/main.h +++ b/src/main.h @@ -25,7 +25,6 @@ #include "tinyformat.h" #include "txmempool.h" #include "uint256.h" -#include "undo.h" #include <algorithm> #include <exception> @@ -302,21 +301,6 @@ bool IsStandardTx(const CTransaction& tx, std::string& reason); bool IsFinalTx(const CTransaction &tx, int nBlockHeight = 0, int64_t nBlockTime = 0); -/** Undo information for a CBlock */ -class CBlockUndo -{ -public: - std::vector<CTxUndo> vtxundo; // for all but the coinbase - - ADD_SERIALIZE_METHODS; - - template <typename Stream, typename Operation> - inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) { - READWRITE(vtxundo); - } -}; - - /** * Closure representing one script verification * Note that this stores references to the spending transaction diff --git a/src/undo.h b/src/undo.h index e6d8fd5862..1c4ed95bf2 100644 --- a/src/undo.h +++ b/src/undo.h @@ -68,4 +68,18 @@ public: } }; +/** Undo information for a CBlock */ +class CBlockUndo +{ +public: + std::vector<CTxUndo> vtxundo; // for all but the coinbase + + ADD_SERIALIZE_METHODS; + + template <typename Stream, typename Operation> + inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) { + READWRITE(vtxundo); + } +}; + #endif // BITCOIN_UNDO_H |