aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/chain.cpp
diff options
context:
space:
mode:
authorRussell Yanofsky <[email protected]>2019-02-01 16:17:43 -0500
committerRussell Yanofsky <[email protected]>2019-02-01 16:17:43 -0500
commitaebafd0edf81b546d4b7db9e7f53e9eef2c0073e (patch)
treedb27087c678e64697383ada2f269ed0bd82626b7 /src/interfaces/chain.cpp
parentDrop redundant get_value_or (diff)
downloaddiscoin-aebafd0edf81b546d4b7db9e7f53e9eef2c0073e.tar.xz
discoin-aebafd0edf81b546d4b7db9e7f53e9eef2c0073e.zip
Rename Chain getLocator -> getTipLocator
Suggested https://github.com/bitcoin/bitcoin/pull/14711#discussion_r252044389
Diffstat (limited to 'src/interfaces/chain.cpp')
-rw-r--r--src/interfaces/chain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/chain.cpp b/src/interfaces/chain.cpp
index 38888be8a..da810bc5e 100644
--- a/src/interfaces/chain.cpp
+++ b/src/interfaces/chain.cpp
@@ -123,7 +123,7 @@ class LockImpl : public Chain::Lock
CBlockIndex* block = LookupBlockIndex(hash);
return block && block->GetAncestor(::chainActive.Height()) == ::chainActive.Tip();
}
- CBlockLocator getLocator() override { return ::chainActive.GetLocator(); }
+ CBlockLocator getTipLocator() override { return ::chainActive.GetLocator(); }
Optional<int> findLocatorFork(const CBlockLocator& locator) override
{
LockAnnotation lock(::cs_main);