MOVEONLY: CBlockUndo from main.h to undo.h

This commit is contained in:
jtimon
2014-10-27 14:42:49 +01:00
committed by jtimon
parent e035c6a737
commit 937ba572d0
3 changed files with 15 additions and 16 deletions

View File

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