Skip to content

Commit 57e7cb7

Browse files
committed
Invoke Clear() before deserializing just to be sure
1 parent c098d47 commit 57e7cb7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/governance/governance.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ class CGovernanceManager
339339
LOCK(cs);
340340
std::string strVersion;
341341
if (ser_action.ForRead()) {
342+
Clear();
342343
READWRITE(strVersion);
343344
if (strVersion != SERIALIZATION_VERSION_STRING) {
344345
return;

src/masternode/masternode-meta.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class CMasternodeMetaMan
100100

101101
std::string strVersion;
102102
if(ser_action.ForRead()) {
103+
Clear();
103104
READWRITE(strVersion);
104105
if (strVersion != SERIALIZATION_VERSION_STRING) {
105106
return;

0 commit comments

Comments
 (0)