CCoinsView::GetHeadBlocks

Retrieve the range of blocks that may have been only partially written. If the database is in a consistent state, the result is the empty vector. Otherwise, a two-element vector is returned consisting of the new and the old block hash, in that order.

Synopsis

Declared in <coins.h>

virtual
std::vector<uint256>
GetHeadBlocks() const = 0;

Return Value

An empty vector when consistent, otherwise the new and old block hashes.