Skip to content

Commit cf095a5

Browse files
committed
Move comment about BaseIndex::DB from TxIndex::DB
1 parent a2a250c commit cf095a5

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/index/base.h

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ class CBlockIndex;
2121
class BaseIndex : public CValidationInterface
2222
{
2323
protected:
24+
/**
25+
* The database stores a block locator of the chain the database is synced to
26+
* so that the index can efficiently determine the point it last stopped at.
27+
* A locator is used instead of a simple hash of the chain tip because blocks
28+
* and block index entries may not be flushed to disk until after this database
29+
* is updated.
30+
*/
2431
class DB : public CDBWrapper
2532
{
2633
public:

src/index/txindex.cpp

+3-9
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,9 @@ constexpr char DB_TXINDEX_BLOCK = 'T';
1616

1717
std::unique_ptr<TxIndex> g_txindex;
1818

19-
/**
20-
* Access to the txindex database (indexes/txindex/)
21-
*
22-
* The database stores a block locator of the chain the database is synced to
23-
* so that the TxIndex can efficiently determine the point it last stopped at.
24-
* A locator is used instead of a simple hash of the chain tip because blocks
25-
* and block index entries may not be flushed to disk until after this database
26-
* is updated.
27-
*/
19+
20+
21+
/** Access to the txindex database (indexes/txindex/) */
2822
class TxIndex::DB : public BaseIndex::DB
2923
{
3024
public:

0 commit comments

Comments
 (0)