Browse Source

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

0.13
Jonas Schnelli 8 years ago
parent
commit
68d7682b9f
No known key found for this signature in database
GPG Key ID: 29D4BCB6416F53EC
  1. 4
      src/wallet/walletdb.h

4
src/wallet/walletdb.h

@ -87,9 +87,8 @@ public: @@ -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: @@ -111,6 +110,7 @@ public:
nVersion = CKeyMetadata::CURRENT_VERSION;
nCreateTime = 0;
hdKeypath.clear();
hdMasterKeyID.SetNull();
}
};

Loading…
Cancel
Save