mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
[Wallet] ensure CKeyMetadata.hdMasterKeyID will be cleared during SetNull()
This commit is contained in:
parent
f70808596f
commit
68d7682b9f
@ -87,9 +87,8 @@ public:
|
||||
}
|
||||
CKeyMetadata(int64_t nCreateTime_)
|
||||
{
|
||||
nVersion = CKeyMetadata::CURRENT_VERSION;
|
||||
SetNull();
|
||||
nCreateTime = nCreateTime_;
|
||||
hdKeypath.clear();
|
||||
}
|
||||
|
||||
ADD_SERIALIZE_METHODS;
|
||||
@ -111,6 +110,7 @@ public:
|
||||
nVersion = CKeyMetadata::CURRENT_VERSION;
|
||||
nCreateTime = 0;
|
||||
hdKeypath.clear();
|
||||
hdMasterKeyID.SetNull();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user