]> Git Repo - VerusCoin.git/commitdiff
[Wallet] ensure CKeyMetadata.hdMasterKeyID will be cleared during SetNull()
authorJonas Schnelli <[email protected]>
Fri, 15 Jul 2016 08:33:25 +0000 (10:33 +0200)
committerEirik Ogilvie-Wigley <[email protected]>
Fri, 14 Sep 2018 23:17:24 +0000 (17:17 -0600)
Zcash: modified for zip32

src/wallet/walletdb.h

index a42bb937cd3c2238e84737cad2b18d5f9de0de92..dc58adb654a559d73efcd3a1587ca8db5f703802 100644 (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();
     }
 };
 
This page took 0.026221 seconds and 4 git commands to generate.