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

Method GetHeadBlocks

src/txdb.cpp:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112std::vector<uint256> CCoinsViewDB::GetHeadBlocks() const {
113 std::vector<uint256> vhashHeadBlocks;
114 if (!m_db->Read(DB_HEAD_BLOCKS, vhashHeadBlocks)) {
115 return std::vector<uint256>();
116 }
117 return vhashHeadBlocks;
118}
119
120bool CCoinsViewDB::BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) {
121 CDBBatch batch(*m_db);

Callers 2

ReplayBlocksMethod · 0.45
FUZZ_TARGET_INITFunction · 0.45

Calls 1

ReadMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.36