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

Zcash: modified for zip32
This commit is contained in:
Jonas Schnelli 2016-07-15 10:33:25 +02:00 committed by Eirik Ogilvie-Wigley
parent 82e71233b0
commit 002753ae64
1 changed files with 2 additions and 2 deletions

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();
}
};