mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-09-18 06:00:48 +02:00
Move comment about BaseIndex::DB from TxIndex::DB
This commit is contained in:
@@ -21,6 +21,13 @@ class CBlockIndex;
|
|||||||
class BaseIndex : public CValidationInterface
|
class BaseIndex : public CValidationInterface
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
/**
|
||||||
|
* The database stores a block locator of the chain the database is synced to
|
||||||
|
* so that the index can efficiently determine the point it last stopped at.
|
||||||
|
* A locator is used instead of a simple hash of the chain tip because blocks
|
||||||
|
* and block index entries may not be flushed to disk until after this database
|
||||||
|
* is updated.
|
||||||
|
*/
|
||||||
class DB : public CDBWrapper
|
class DB : public CDBWrapper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -16,15 +16,9 @@ constexpr char DB_TXINDEX_BLOCK = 'T';
|
|||||||
|
|
||||||
std::unique_ptr<TxIndex> g_txindex;
|
std::unique_ptr<TxIndex> g_txindex;
|
||||||
|
|
||||||
/**
|
|
||||||
* Access to the txindex database (indexes/txindex/)
|
|
||||||
*
|
/** Access to the txindex database (indexes/txindex/) */
|
||||||
* The database stores a block locator of the chain the database is synced to
|
|
||||||
* so that the TxIndex can efficiently determine the point it last stopped at.
|
|
||||||
* A locator is used instead of a simple hash of the chain tip because blocks
|
|
||||||
* and block index entries may not be flushed to disk until after this database
|
|
||||||
* is updated.
|
|
||||||
*/
|
|
||||||
class TxIndex::DB : public BaseIndex::DB
|
class TxIndex::DB : public BaseIndex::DB
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user