diff options
| author | Andrew Chow <[email protected]> | 2019-10-07 14:11:34 -0400 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2019-11-01 22:58:05 -0400 |
| commit | 152b0a00d8e681dd098f6b548447b82ab54ebe3c (patch) | |
| tree | cb55db76e9f2ebdca3476c4304673ef8c3fa09ee /src/wallet/scriptpubkeyman.cpp | |
| parent | Refactor: Move GetKeypoolSize code out of CWallet (diff) | |
| download | discoin-152b0a00d8e681dd098f6b548447b82ab54ebe3c.tar.xz discoin-152b0a00d8e681dd098f6b548447b82ab54ebe3c.zip | |
Refactor: Move nTimeFirstKey accesses out of CWallet
This commit does not change behavior.
Diffstat (limited to 'src/wallet/scriptpubkeyman.cpp')
| -rw-r--r-- | src/wallet/scriptpubkeyman.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index a046a7c93..bb13db11b 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -470,6 +470,12 @@ unsigned int LegacyScriptPubKeyMan::GetKeyPoolSize() const return setInternalKeyPool.size() + setExternalKeyPool.size(); } +int64_t LegacyScriptPubKeyMan::GetTimeFirstKey() const +{ + AssertLockHeld(cs_wallet); + return nTimeFirstKey; +} + const CKeyMetadata* LegacyScriptPubKeyMan::GetMetadata(uint160 id) const { AssertLockHeld(cs_wallet); |