aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/chain.cpp
diff options
context:
space:
mode:
authorRussell Yanofsky <[email protected]>2020-01-22 17:15:17 -0500
committerRussell Yanofsky <[email protected]>2020-03-31 08:36:02 -0500
commit48973402d8bccb673eaeb68b7aa86faa39d3cb8a (patch)
tree307622d91c87c8b1cd79d8e66ac5522d638420d7 /src/interfaces/chain.cpp
parentwallet: Avoid use of Chain::Lock in CWallet::CreateTransaction (diff)
downloaddiscoin-48973402d8bccb673eaeb68b7aa86faa39d3cb8a.tar.xz
discoin-48973402d8bccb673eaeb68b7aa86faa39d3cb8a.zip
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.
Diffstat (limited to 'src/interfaces/chain.cpp')
-rw-r--r--src/interfaces/chain.cpp7
1 files changed, 0 insertions, 7 deletions
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<RecursiveMutex>
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);