mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-05 13:11:57 +02:00
src/primitives/transaction.h: endian compatibility in serialization
This commit is contained in:
@ -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; }
|
||||||
|
Reference in New Issue
Block a user