MCPcopy Create free account
hub / github.com/ElementsProject/elements / SetBestBlock

Method SetBestBlock

src/coins.cpp:247–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void CCoinsViewCache::SetBestBlock(const uint256 &hashBlockIn) {
248 hashBlock = hashBlockIn;
249}
250
251bool CCoinsViewCache::BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlockIn) {
252 for (CCoinsMap::iterator it = mapCoins.begin(); it != mapCoins.end(); it = mapCoins.erase(it)) {

Callers 10

DisconnectBlockMethod · 0.80
ConnectBlockMethod · 0.80
ReplayBlocksMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
SimulationTestFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80

Calls

no outgoing calls

Tested by 6

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
SimulationTestFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64