aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2016-07-15 10:33:25 +0200
committerJonas Schnelli <dev@jonasschnelli.ch>2016-07-15 10:33:25 +0200
commit68d7682b9f8c0f548e0a9ef03296320b8ae3960d (patch)
treed885f0fd6023ff19fc8f2c6537d7006b9b41f4f0 /src
parentf70808596fb4108e53c8b433820593b88c4fa81b (diff)
[Wallet] ensure CKeyMetadata.hdMasterKeyID will be cleared during SetNull()
Diffstat (limited to 'src')
-rw-r--r--src/wallet/walletdb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h
index eaa406857f..42179f2288 100644
--- a/src/wallet/walletdb.h
+++ b/src/wallet/walletdb.h
@@ -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();
}
};