Browse Source

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

0.13
Wladimir J. van der Laan 10 years ago
parent
commit
4f92773f92
  1. 3
      src/primitives/transaction.h

3
src/primitives/transaction.h

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

Loading…
Cancel
Save