From 4f92773f9285760fe3e2eb14f5ca21de850d1955 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Fri, 19 Dec 2014 11:40:00 +0100 Subject: [PATCH] src/primitives/transaction.h: endian compatibility in serialization --- src/primitives/transaction.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 1b5a47e0da..0ba9affeda 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -25,7 +25,8 @@ public: template 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; }