From 7ad414f4bfa74595ee5726e66f3527045c02a977 Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Fri, 18 Jun 2021 14:15:39 -0400 Subject: [PATCH] doc: add comment about CCoinsViewDBCursor constructor --- src/txdb.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/txdb.cpp b/src/txdb.cpp index e6469ee1599..4b76bee5ab8 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -172,6 +172,8 @@ bool CBlockTreeDB::ReadLastBlockFile(int &nFile) { class CCoinsViewDBCursor: public CCoinsViewCursor { public: + // Prefer using CCoinsViewDB::Cursor() since we want to perform some + // cache warmup on instantiation. CCoinsViewDBCursor(CDBIterator* pcursorIn, const uint256&hashBlockIn): CCoinsViewCursor(hashBlockIn), pcursor(pcursorIn) {} ~CCoinsViewDBCursor() {}