| 108 | } |
| 109 | |
| 110 | bool 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 | |
| 120 | bool BlockTreeDB::LoadBlockIndexGuts(const Consensus::Params& consensusParams, std::function<CBlockIndex*(const uint256&)> insertBlockIndex, const util::SignalInterrupt& interrupt) |
| 121 | { |
no outgoing calls
no test coverage detected