MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / SetBestBlock

Method SetBestBlock

src/coins.cpp:141–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void CCoinsViewCache::SetBestBlock(const uint256 &hashBlockIn) {
142 hashBlock = hashBlockIn;
143}
144
145bool CCoinsViewCache::BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlockIn) {
146 for (CCoinsMap::iterator it = mapCoins.begin(); it != mapCoins.end(); it = mapCoins.erase(it)) {

Callers 4

DisconnectBlockMethod · 0.80
ConnectBlockMethod · 0.80
ReplayBlocksMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64