Do not encode leading bytes in PaymentAddress serialization; this is a task for a higher-level API.

This commit is contained in:
Sean Bowe
2016-06-15 14:58:30 -06:00
parent 6793168a2e
commit 62b7cd6173

View File

@@ -19,13 +19,6 @@ public:
template <typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) {
unsigned char leadingByte = 0x92;
READWRITE(leadingByte);
if (leadingByte != 0x92) {
throw std::ios_base::failure("unrecognized payment address lead byte");
}
READWRITE(a_pk);
READWRITE(pk_enc);
}
@@ -51,4 +44,4 @@ public:
}
#endif // _ZCADDRESS_H_
#endif // _ZCADDRESS_H_