aboutsummaryrefslogtreecommitdiff
path: root/src/index/base.h
diff options
context:
space:
mode:
authorFabian Jahr <fjahr@protonmail.com>2020-01-24 18:56:47 +0100
committerFabian Jahr <fjahr@protonmail.com>2021-04-19 20:28:48 +0200
commitdd58a4de21469d6d848ae309edc47f558628221d (patch)
tree6b914fa5b525d73db702bd454cd7a467fac63a73 /src/index/base.h
parenta8a46c4b3cfda4b95c92a36f8cebd3606377e57d (diff)
downloadbitcoin-dd58a4de21469d6d848ae309edc47f558628221d.tar.xz
index: Add Coinstats index
The index holds the values previously calculated in coinstats.cpp for each block, representing the state of the UTXO set at each height.
Diffstat (limited to 'src/index/base.h')
-rw-r--r--src/index/base.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index/base.h b/src/index/base.h
index ac3c429a5a..d887620524 100644
--- a/src/index/base.h
+++ b/src/index/base.h
@@ -81,6 +81,8 @@ protected:
void ChainStateFlushed(const CBlockLocator& locator) override;
+ const CBlockIndex* CurrentIndex() { return m_best_block_index.load(); };
+
/// Initialize internal state from the database and block index.
virtual bool Init();