[Wallet] ensure CKeyMetadata.hdMasterKeyID will be cleared during SetNull()

Zcash: modified for zip32
This commit is contained in:
Jonas Schnelli
2018-09-14 17:17:24 -06:00
committed by Eirik Ogilvie-Wigley
parent 82e71233b0
commit 002753ae64
+2 -2
View File
@@ -91,9 +91,8 @@ public:
}
CKeyMetadata(int64_t nCreateTime_)
{
nVersion = CKeyMetadata::CURRENT_VERSION;
SetNull();
nCreateTime = nCreateTime_;
hdKeypath.clear();
}
ADD_SERIALIZE_METHODS;
@@ -114,6 +113,7 @@ public:
nVersion = CKeyMetadata::CURRENT_VERSION;
nCreateTime = 0;
hdKeypath.clear();
seedFp.SetNull();
}
};