Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bitcoin/bitcoin
/ SetBestBlock
Method
SetBestBlock
src/coins.cpp:184–187 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
182
}
183
184
void CCoinsViewCache::SetBestBlock(const uint256& in_block_hash)
185
{
186
m_block_hash = in_block_hash;
187
}
188
189
void CCoinsViewCache::BatchWrite(CoinsViewCacheCursor& cursor, const uint256& in_block_hash)
190
{
Callers
15
AppInitMain
Function · 0.45
DisconnectBlock
Method · 0.45
ConnectBlock
Method · 0.45
ReplayBlocks
Method · 0.45
PopulateAndValidateSnapshot
Method · 0.45
BOOST_AUTO_TEST_CASE
Function · 0.45
BOOST_AUTO_TEST_CASE
Function · 0.45
PopulateView
Function · 0.45
BOOST_AUTO_TEST_CASE
Function · 0.45
BOOST_AUTO_TEST_CASE
Function · 0.45
SimulationTest
Method · 0.45
TestFlushBehavior
Method · 0.45
Calls
no outgoing calls
Tested by
13
BOOST_AUTO_TEST_CASE
Function · 0.36
BOOST_AUTO_TEST_CASE
Function · 0.36
PopulateView
Function · 0.36
BOOST_AUTO_TEST_CASE
Function · 0.36
BOOST_AUTO_TEST_CASE
Function · 0.36
SimulationTest
Method · 0.36
TestFlushBehavior
Method · 0.36
BOOST_FIXTURE_TEST_CASE
Function · 0.36
BOOST_AUTO_TEST_CASE
Function · 0.36
TestBasicMining
Method · 0.36
BOOST_FIXTURE_TEST_CASE
Function · 0.36
TestCoinsView
Function · 0.36