diff options
| author | Russell Yanofsky <[email protected]> | 2016-11-08 16:28:20 -0500 |
|---|---|---|
| committer | Russell Yanofsky <[email protected]> | 2017-02-10 15:49:00 -0500 |
| commit | a58370e6a2d4dce50eefbcab5bde9f14facef8fc (patch) | |
| tree | b5c4fd59bba41e4383f1536d908f0fcedbe176f8 /src/wallet/wallet.h | |
| parent | Use MTP for importmulti "now" timestamps (diff) | |
| download | discoin-a58370e6a2d4dce50eefbcab5bde9f14facef8fc.tar.xz discoin-a58370e6a2d4dce50eefbcab5bde9f14facef8fc.zip | |
Dedup nTimeFirstKey update logic
Also make nTimeFirstKey member variable private.
This is just a cleanup change, it doesn't change behavior in any significant
way.
Diffstat (limited to 'src/wallet/wallet.h')
| -rw-r--r-- | src/wallet/wallet.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index ea4787c36..8d3ee9ddd 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -611,6 +611,9 @@ private: bool fFileBacked; std::set<int64_t> setKeyPool; + + int64_t nTimeFirstKey; + public: /* * Main wallet lock. @@ -688,8 +691,6 @@ public: std::set<COutPoint> setLockedCoins; - int64_t nTimeFirstKey; - const CWalletTx* GetWalletTx(const uint256& hash) const; //! check whether we are allowed to upgrade (or already support) to the named feature @@ -730,6 +731,7 @@ public: bool LoadKeyMetadata(const CPubKey &pubkey, const CKeyMetadata &metadata); bool LoadMinVersion(int nVersion) { AssertLockHeld(cs_wallet); nWalletVersion = nVersion; nWalletMaxVersion = std::max(nWalletMaxVersion, nVersion); return true; } + void UpdateTimeFirstKey(int64_t nCreateTime); //! Adds an encrypted key to the store, and saves it to disk. bool AddCryptedKey(const CPubKey &vchPubKey, const std::vector<unsigned char> &vchCryptedSecret); |