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

Method ReadFlag

src/node/blockstorage.cpp:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110bool BlockTreeDB::ReadFlag(const std::string& name, bool& fValue)
111{
112 uint8_t ch;
113 if (!Read(std::make_pair(DB_FLAG, name), ch)) {
114 return false;
115 }
116 fValue = ch == uint8_t{'1'};
117 return true;
118}
119
120bool BlockTreeDB::LoadBlockIndexGuts(const Consensus::Params& consensusParams, std::function<CBlockIndex*(const uint256&)> insertBlockIndex, const util::SignalInterrupt& interrupt)
121{

Callers 2

block_index.cppFile · 0.80
LoadBlockIndexDBMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected