mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-30 08:44:16 +00:00
src/primitives/transaction.h: endian compatibility in serialization
This commit is contained in:
parent
81aeb28436
commit
4f92773f92
@ -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…
x
Reference in New Issue
Block a user