mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
interfaces: move getTip implementation to miner
This commit is contained in:
committed by
ismaelsadeeq
parent
720f201e65
commit
c39ca9d4f7
@@ -966,10 +966,7 @@ public:
|
||||
|
||||
std::optional<BlockRef> getTip() override
|
||||
{
|
||||
LOCK(::cs_main);
|
||||
CBlockIndex* tip{chainman().ActiveChain().Tip()};
|
||||
if (!tip) return {};
|
||||
return BlockRef{tip->GetBlockHash(), tip->nHeight};
|
||||
return GetTip(chainman());
|
||||
}
|
||||
|
||||
std::optional<BlockRef> waitTipChanged(uint256 current_tip, MillisecondsDouble timeout) override
|
||||
|
||||
Reference in New Issue
Block a user