From 152b0a00d8e681dd098f6b548447b82ab54ebe3c Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Mon, 7 Oct 2019 14:11:34 -0400 Subject: Refactor: Move nTimeFirstKey accesses out of CWallet This commit does not change behavior. --- src/wallet/scriptpubkeyman.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/wallet/scriptpubkeyman.cpp') 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); -- cgit v1.2.3