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

Method IsEmpty

src/dbwrapper.cpp:361–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361bool CDBWrapper::IsEmpty()
362{
363 std::unique_ptr<CDBIterator> it(NewIterator());
364 it->SeekToFirst();
365 return !(it->Valid());
366}
367
368struct CDBIterator::IteratorImpl {
369 const std::unique_ptr<leveldb::Iterator> iter;

Callers 2

PostLinearizeFunction · 0.45
SanityCheckMethod · 0.45

Calls 2

SeekToFirstMethod · 0.45
ValidMethod · 0.45

Tested by

no test coverage detected