src/primitives/transaction.h: endian compatibility in serialization

This commit is contained in:
Wladimir J. van der Laan 2014-12-19 11:40:00 +01:00
parent 81aeb28436
commit 4f92773f92

View File

@ -25,7 +25,8 @@ public:
template <typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) {
READWRITE(FLATDATA(*this));
READWRITE(hash);
READWRITE(n);
}
void SetNull() { hash.SetNull(); n = (uint32_t) -1; }