From 48973402d8bccb673eaeb68b7aa86faa39d3cb8a Mon Sep 17 00:00:00 2001 From: Russell Yanofsky Date: Wed, 22 Jan 2020 17:15:17 -0500 Subject: wallet: Avoid use of Chain::Lock in CWallet::GetKeyBirthTimes This is a step toward removing the Chain::Lock class and reducing cs_main locking. This change only affects behavior in the case where wallet last block processed falls behind the chain tip, where it will treat the last block processed as the current tip. --- src/interfaces/chain.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/interfaces/chain.cpp') diff --git a/src/interfaces/chain.cpp b/src/interfaces/chain.cpp index 2b2d3a4b8..c8311b298 100644 --- a/src/interfaces/chain.cpp +++ b/src/interfaces/chain.cpp @@ -80,13 +80,6 @@ class LockImpl : public Chain::Lock, public UniqueLock assert(block != nullptr); return block->GetBlockHash(); } - int64_t getBlockTime(int height) override - { - LockAssertion lock(::cs_main); - CBlockIndex* block = ::ChainActive()[height]; - assert(block != nullptr); - return block->GetBlockTime(); - } bool haveBlockOnDisk(int height) override { LockAssertion lock(::cs_main); -- cgit v1.2.3