mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #5122
52964501
ringct: fix v1 ecdhInfo serialization (moneromooo-monero)
This commit is contained in:
commit
35e0bf2e06
1 changed files with 2 additions and 15 deletions
|
@ -45,8 +45,6 @@
|
|||
#include "ringct/rctTypes.h"
|
||||
#include "ringct/rctOps.h"
|
||||
|
||||
BOOST_CLASS_VERSION(rct::ecdhTuple, 1)
|
||||
|
||||
//namespace cryptonote {
|
||||
namespace boost
|
||||
{
|
||||
|
@ -248,20 +246,9 @@ namespace boost
|
|||
|
||||
template <class Archive>
|
||||
inline void serialize(Archive &a, rct::ecdhTuple &x, const boost::serialization::version_type ver)
|
||||
{
|
||||
if (ver < 1)
|
||||
{
|
||||
a & x.mask;
|
||||
a & x.amount;
|
||||
return;
|
||||
}
|
||||
crypto::hash8 &amount = (crypto::hash8&)x.amount;
|
||||
if (!Archive::is_saving::value)
|
||||
{
|
||||
memset(&x.mask, 0, sizeof(x.mask));
|
||||
memset(&x.amount, 0, sizeof(x.amount));
|
||||
}
|
||||
a & amount;
|
||||
}
|
||||
|
||||
template <class Archive>
|
||||
|
|
Loading…
Reference in a new issue