From dc971be0831959e7ee6a6df9e1aa46091351a8fb Mon Sep 17 00:00:00 2001 From: Ryan Ofsky Date: Mon, 17 Jan 2022 20:33:16 -0500 Subject: indexes, refactor: Remove CBlockIndex* uses in index WriteBlock methods Replace WriteBlock method with CustomAppend and pass BlockInfo struct instead of CBlockIndex* pointer This commit does not change behavior in any way. --- src/index/coinstatsindex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index/coinstatsindex.h') diff --git a/src/index/coinstatsindex.h b/src/index/coinstatsindex.h index 4d90065330..c90a5cf4fb 100644 --- a/src/index/coinstatsindex.h +++ b/src/index/coinstatsindex.h @@ -43,7 +43,7 @@ protected: bool CommitInternal(CDBBatch& batch) override; - bool WriteBlock(const CBlock& block, const CBlockIndex* pindex) override; + bool CustomAppend(const interfaces::BlockInfo& block) override; bool Rewind(const CBlockIndex* current_tip, const CBlockIndex* new_tip) override; -- cgit v1.2.3