aboutsummaryrefslogtreecommitdiff
path: root/src/index/txindex.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/index/txindex.h')
-rw-r--r--src/index/txindex.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/index/txindex.h b/src/index/txindex.h
index f38d845998..29626332ab 100644
--- a/src/index/txindex.h
+++ b/src/index/txindex.h
@@ -57,6 +57,9 @@ protected:
virtual BaseIndexDB& GetDB() const = 0;
+ /// Get the name of the index for display in logs.
+ virtual const char* GetName() const = 0;
+
public:
/// Destructor interrupts sync thread if running and blocks until it exits.
virtual ~BaseIndex();
@@ -96,6 +99,8 @@ protected:
BaseIndexDB& GetDB() const override;
+ const char* GetName() const override { return "txindex"; }
+
public:
/// Constructs the index, which becomes available to be queried.
explicit TxIndex(std::unique_ptr<TxIndexDB> db);