MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetHeadBlocks

Method GetHeadBlocks

src/txdb.cpp:114–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114std::vector<uint256> CCoinsViewDB::GetHeadBlocks() const {
115 std::vector<uint256> vhashHeadBlocks;
116 if (!m_db->Read(DB_HEAD_BLOCKS, vhashHeadBlocks)) {
117 return std::vector<uint256>();
118 }
119 return vhashHeadBlocks;
120}
121
122void CCoinsViewDB::BatchWrite(CoinsViewCacheCursor& cursor, const uint256& block_hash)
123{

Callers 2

ReplayBlocksMethod · 0.45
TestCoinsViewFunction · 0.45

Calls 1

ReadMethod · 0.45

Tested by 1

TestCoinsViewFunction · 0.36