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

Method GetHeadBlocks

src/txdb.cpp:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76std::vector<uint256> CCoinsViewDB::GetHeadBlocks() const {
77 std::vector<uint256> vhashHeadBlocks;
78 if (!db.Read(DB_HEAD_BLOCKS, vhashHeadBlocks)) {
79 return std::vector<uint256>();
80 }
81 return vhashHeadBlocks;
82}
83
84bool CCoinsViewDB::BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) {
85 CDBBatch batch(db);

Callers 1

ReplayBlocksMethod · 0.45

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected