mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +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:
@@ -559,11 +559,6 @@ public:
|
||||
const CBlockIndex* block{chainman().ActiveChain()[height]};
|
||||
return block && ((block->nStatus & BLOCK_HAVE_DATA) != 0) && block->nTx > 0;
|
||||
}
|
||||
CBlockLocator getTipLocator() override
|
||||
{
|
||||
LOCK(::cs_main);
|
||||
return chainman().ActiveChain().GetLocator();
|
||||
}
|
||||
CBlockLocator getActiveChainLocator(const uint256& block_hash) override
|
||||
{
|
||||
LOCK(::cs_main);
|
||||
|
||||
Reference in New Issue
Block a user