diff options
Diffstat (limited to 'src/index/base.h')
-rw-r--r-- | src/index/base.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/index/base.h b/src/index/base.h index 77e614a3af..31acbed0c1 100644 --- a/src/index/base.h +++ b/src/index/base.h @@ -80,6 +80,10 @@ protected: /// commit more index state. virtual bool CommitInternal(CDBBatch& batch); + /// Rewind index to an earlier chain tip during a chain reorg. The tip must + /// be an ancestor of the current best block. + virtual bool Rewind(const CBlockIndex* current_tip, const CBlockIndex* new_tip); + virtual DB& GetDB() const = 0; /// Get the name of the index for display in logs. |