mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
remove additional FLATDATA
Signed-off-by: pasta <pasta@dashboost.org>
This commit is contained in:
parent
f5bbf20879
commit
80a9746d0a
@ -29,7 +29,7 @@ public:
|
||||
valid = false;
|
||||
}
|
||||
READWRITE(ephemeralPubKey);
|
||||
READWRITE(FLATDATA(iv));
|
||||
READWRITE(iv);
|
||||
READWRITE(data);
|
||||
if (ser_action.ForRead()) {
|
||||
valid = true;
|
||||
|
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user