mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
interfaces, chain, refactor: Remove unused getTipLocator
Also removed CChain::GetLocator() and replaced its call with GetLocator() which uses LocatorEntries instead. Co-authored-by: ryanofsky <ryan@ofsky.org> Co-authored-by: l0rinc <l0rinc@users.noreply.github.com>
This commit is contained in:
@@ -52,11 +52,6 @@ CBlockLocator GetLocator(const CBlockIndex* index)
|
||||
return CBlockLocator{LocatorEntries(index)};
|
||||
}
|
||||
|
||||
CBlockLocator CChain::GetLocator() const
|
||||
{
|
||||
return ::GetLocator(Tip());
|
||||
}
|
||||
|
||||
const CBlockIndex *CChain::FindFork(const CBlockIndex *pindex) const {
|
||||
if (pindex == nullptr) {
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user