Skip to content

Commit

Permalink
src/primitives/transaction.h: endian compatibility in serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
laanwj committed Mar 6, 2015
1 parent 81aeb28 commit 4f92773
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/primitives/transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class COutPoint

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; }
Expand Down

0 comments on commit 4f92773

Please sign in to comment.