Skip to content

Commit f3165dd

Browse files
fanquakevijaydasmp
authored andcommitted
Merge bitcoin#19733: Move comment about BaseIndex::DB from TxIndex::DB
8ed2f1e Remove unused includes (Marcin Jachymiak) cf095a5 Move comment about BaseIndex::DB from TxIndex::DB (Marcin Jachymiak) Pull request description: Moves a comment about the `BaseIndex::DB` from the `TxIndex::DB` into the correct place. Originally part of bitcoin#14053. ACKs for top commit: fanquake: ACK 8ed2f1e Tree-SHA512: cb4e2b916c7ab996961cc2e1d910bc4b8a1700eb32b70fc1657ca720117a7a84f7337fe5e4fb30e047aa92c31eaa976eaaa5cb8f861877f2ff6f4a59bb94f4e9
1 parent 43183f6 commit f3165dd

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/index/base.h

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

src/index/txindex.cpp

+2-9
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <ui_interface.h>
88
#include <util/system.h>
99
#include <validation.h>
10+
#include <serialize.h>
1011

1112
#include <boost/thread.hpp>
1213

@@ -39,15 +40,7 @@ struct CDiskTxPos : public FlatFilePos
3940
}
4041
};
4142

42-
/**
43-
* Access to the txindex database (indexes/txindex/)
44-
*
45-
* The database stores a block locator of the chain the database is synced to
46-
* so that the TxIndex can efficiently determine the point it last stopped at.
47-
* A locator is used instead of a simple hash of the chain tip because blocks
48-
* and block index entries may not be flushed to disk until after this database
49-
* is updated.
50-
*/
43+
/** Access to the txindex database (indexes/txindex/) */
5144
class TxIndex::DB : public BaseIndex::DB
5245
{
5346
public:

0 commit comments

Comments
 (0)