aboutsummaryrefslogtreecommitdiff
path: root/src/undo.h
diff options
context:
space:
mode:
authorjtimon <[email protected]>2014-10-27 14:42:49 +0100
committerjtimon <[email protected]>2014-12-27 16:01:31 +0100
commit937ba572d0758891f43c658d7d98d7bd747c3ce4 (patch)
treeb88f675d571a636c0d5fd638b802257419f2444a /src/undo.h
parentDecouple CBlockUndo from CDiskBlockPos (diff)
downloaddiscoin-937ba572d0758891f43c658d7d98d7bd747c3ce4.tar.xz
discoin-937ba572d0758891f43c658d7d98d7bd747c3ce4.zip
MOVEONLY: CBlockUndo from main.h to undo.h
Diffstat (limited to 'src/undo.h')
-rw-r--r--src/undo.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/undo.h b/src/undo.h
index e6d8fd586..1c4ed95bf 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