Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bitcoin/bitcoin
/ GetBestBlock
Method
GetBestBlock
src/coins.cpp:178–182 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
176
}
177
178
uint256 CCoinsViewCache::GetBestBlock() const {
179
if (m_block_hash.IsNull())
180
m_block_hash = base->GetBestBlock();
181
return m_block_hash;
182
}
183
184
void CCoinsViewCache::SetBestBlock(const uint256& in_block_hash)
185
{
Callers
nothing calls this directly
Calls
1
IsNull
Method · 0.45
Tested by
no test coverage detected