diff options
Diffstat (limited to 'src/index/txindex.h')
-rw-r--r-- | src/index/txindex.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/index/txindex.h b/src/index/txindex.h index 2bbc602631..be240c4582 100644 --- a/src/index/txindex.h +++ b/src/index/txindex.h @@ -20,8 +20,10 @@ protected: private: const std::unique_ptr<DB> m_db; + bool AllowPrune() const override { return false; } + protected: - bool WriteBlock(const CBlock& block, const CBlockIndex* pindex) override; + bool CustomAppend(const interfaces::BlockInfo& block) override; BaseIndex::DB& GetDB() const override; @@ -29,7 +31,7 @@ protected: public: /// Constructs the index, which becomes available to be queried. - explicit TxIndex(size_t n_cache_size, bool f_memory = false, bool f_wipe = false); + explicit TxIndex(std::unique_ptr<interfaces::Chain> chain, size_t n_cache_size, bool f_memory = false, bool f_wipe = false); // Destructor is declared because this class contains a unique_ptr to an incomplete type. virtual ~TxIndex() override; |