aboutsummaryrefslogtreecommitdiff
path: root/src/undo.h
diff options
context:
space:
mode:
authorjtimon <jtimon@blockstream.io>2014-10-27 14:42:49 +0100
committerjtimon <jtimon@jtimon.cc>2014-12-27 16:01:31 +0100
commit937ba572d0758891f43c658d7d98d7bd747c3ce4 (patch)
treeb88f675d571a636c0d5fd638b802257419f2444a /src/undo.h
parente035c6a7371027fe33c460ee2d0946a7f1e4e592 (diff)
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 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