@@ -34,16 +34,16 @@ static constexpr uint8_t DB_FLAG{'F'};
3434static constexpr uint8_t DB_REINDEX_FLAG{' R' };
3535static constexpr uint8_t DB_LAST_BLOCK{' l' };
3636// Keys used in previous version that might still be found in the DB:
37- // CBlockTreeDB ::DB_TXINDEX_BLOCK{'T'};
38- // CBlockTreeDB ::DB_TXINDEX{'t'}
39- // CBlockTreeDB ::ReadFlag("txindex")
37+ // BlockTreeDB ::DB_TXINDEX_BLOCK{'T'};
38+ // BlockTreeDB ::DB_TXINDEX{'t'}
39+ // BlockTreeDB ::ReadFlag("txindex")
4040
41- bool CBlockTreeDB ::ReadBlockFileInfo (int nFile, CBlockFileInfo& info)
41+ bool BlockTreeDB ::ReadBlockFileInfo (int nFile, CBlockFileInfo& info)
4242{
4343 return Read (std::make_pair (DB_BLOCK_FILES, nFile), info);
4444}
4545
46- bool CBlockTreeDB ::WriteReindexing (bool fReindexing )
46+ bool BlockTreeDB ::WriteReindexing (bool fReindexing )
4747{
4848 if (fReindexing ) {
4949 return Write (DB_REINDEX_FLAG, uint8_t {' 1' });
@@ -52,17 +52,17 @@ bool CBlockTreeDB::WriteReindexing(bool fReindexing)
5252 }
5353}
5454
55- void CBlockTreeDB ::ReadReindexing (bool & fReindexing )
55+ void BlockTreeDB ::ReadReindexing (bool & fReindexing )
5656{
5757 fReindexing = Exists (DB_REINDEX_FLAG);
5858}
5959
60- bool CBlockTreeDB ::ReadLastBlockFile (int & nFile)
60+ bool BlockTreeDB ::ReadLastBlockFile (int & nFile)
6161{
6262 return Read (DB_LAST_BLOCK, nFile);
6363}
6464
65- bool CBlockTreeDB ::WriteBatchSync (const std::vector<std::pair<int , const CBlockFileInfo*>>& fileInfo, int nLastFile, const std::vector<const CBlockIndex*>& blockinfo)
65+ bool BlockTreeDB ::WriteBatchSync (const std::vector<std::pair<int , const CBlockFileInfo*>>& fileInfo, int nLastFile, const std::vector<const CBlockIndex*>& blockinfo)
6666{
6767 CDBBatch batch (*this );
6868 for (const auto & [file, info] : fileInfo) {
@@ -75,12 +75,12 @@ bool CBlockTreeDB::WriteBatchSync(const std::vector<std::pair<int, const CBlockF
7575 return WriteBatch (batch, true );
7676}
7777
78- bool CBlockTreeDB ::WriteFlag (const std::string& name, bool fValue )
78+ bool BlockTreeDB ::WriteFlag (const std::string& name, bool fValue )
7979{
8080 return Write (std::make_pair (DB_FLAG, name), fValue ? uint8_t {' 1' } : uint8_t {' 0' });
8181}
8282
83- bool CBlockTreeDB ::ReadFlag (const std::string& name, bool & fValue )
83+ bool BlockTreeDB ::ReadFlag (const std::string& name, bool & fValue )
8484{
8585 uint8_t ch;
8686 if (!Read (std::make_pair (DB_FLAG, name), ch)) {
@@ -90,7 +90,7 @@ bool CBlockTreeDB::ReadFlag(const std::string& name, bool& fValue)
9090 return true ;
9191}
9292
93- bool CBlockTreeDB ::LoadBlockIndexGuts (const Consensus::Params& consensusParams, std::function<CBlockIndex*(const uint256&)> insertBlockIndex, const util::SignalInterrupt& interrupt)
93+ bool BlockTreeDB ::LoadBlockIndexGuts (const Consensus::Params& consensusParams, std::function<CBlockIndex*(const uint256&)> insertBlockIndex, const util::SignalInterrupt& interrupt)
9494{
9595 AssertLockHeld (::cs_main);
9696 std::unique_ptr<CDBIterator> pcursor (NewIterator ());
0 commit comments