diff options
author | Antoine Riard <ariard@student.42.fr> | 2019-04-29 10:18:50 -0400 |
---|---|---|
committer | Antoine Riard <ariard@student.42.fr> | 2019-11-06 13:36:43 -0500 |
commit | 36b68de5b2938722911db900ca299f7008780d01 (patch) | |
tree | 3791969a005bbd1c2982cb8c2a510a8975cc3b7c /src/interfaces/chain.cpp | |
parent | b66c429c56c85fa16c309be0b2bca9c25fdd3e1a (diff) |
Remove getBlockDepth method from Chain::interface
Pass conflicting height in CWallet::MarkConflicted
Diffstat (limited to 'src/interfaces/chain.cpp')
-rw-r--r-- | src/interfaces/chain.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/interfaces/chain.cpp b/src/interfaces/chain.cpp index 0635909cae..26856a00d3 100644 --- a/src/interfaces/chain.cpp +++ b/src/interfaces/chain.cpp @@ -58,12 +58,6 @@ class LockImpl : public Chain::Lock, public UniqueLock<CCriticalSection> } return nullopt; } - int getBlockDepth(const uint256& hash) override - { - const Optional<int> tip_height = getHeight(); - const Optional<int> height = getBlockHeight(hash); - return tip_height && height ? *tip_height - *height + 1 : 0; - } uint256 getBlockHash(int height) override { LockAssertion lock(::cs_main); |