Commit cf095a5 1 parent a2a250c commit cf095a5 Copy full SHA for cf095a5
File tree 2 files changed +10
-9
lines changed
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,13 @@ class CBlockIndex;
21
21
class BaseIndex : public CValidationInterface
22
22
{
23
23
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
+ */
24
31
class DB : public CDBWrapper
25
32
{
26
33
public:
Original file line number Diff line number Diff line change @@ -16,15 +16,9 @@ constexpr char DB_TXINDEX_BLOCK = 'T';
16
16
17
17
std::unique_ptr<TxIndex> g_txindex;
18
18
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/) */
28
22
class TxIndex ::DB : public BaseIndex::DB
29
23
{
30
24
public:
You can’t perform that action at this time.
0 commit comments