Do not encode leading bytes in `PaymentAddress` serialization; this is a task for a higher-level API.
This commit is contained in:
parent
6793168a2e
commit
62b7cd6173
|
@ -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_
|
||||
|
|
Loading…
Reference in New Issue