remove additional FLATDATA

Signed-off-by: pasta <pasta@dashboost.org>
This commit is contained in:
pasta 2020-10-27 13:24:34 -04:00
parent f5bbf20879
commit 80a9746d0a
No known key found for this signature in database
GPG Key ID: 52527BEDABE87984
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ public:
valid = false;
}
READWRITE(ephemeralPubKey);
READWRITE(FLATDATA(iv));
READWRITE(iv);
READWRITE(data);
if (ser_action.ForRead()) {
valid = true;

View File

@ -45,7 +45,7 @@ private:
// serialize, checksum data up to that point, then append checksum
CDataStream ssObj(SER_DISK, CLIENT_VERSION);
ssObj << strMagicMessage; // specific magic message for this type of object
ssObj << FLATDATA(Params().MessageStart()); // network specific magic number
ssObj << Params().MessageStart(); // network specific magic number
ssObj << objToSave;
uint256 hash = Hash(ssObj.begin(), ssObj.end());
ssObj << hash;
@ -132,7 +132,7 @@ private:
// de-serialize file header (network specific magic number) and ..
ssObj >> FLATDATA(pchMsgTmp);
ssObj >> pchMsgTmp;
// ... verify the network matches ours
if (memcmp(pchMsgTmp, Params().MessageStart(), sizeof(pchMsgTmp)))