Skip to content

Commit 7ad414f

Browse files
committed
doc: add comment about CCoinsViewDBCursor constructor
1 parent 0f8a5a4 commit 7ad414f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/txdb.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ bool CBlockTreeDB::ReadLastBlockFile(int &nFile) {
172172
class CCoinsViewDBCursor: public CCoinsViewCursor
173173
{
174174
public:
175+
// Prefer using CCoinsViewDB::Cursor() since we want to perform some
176+
// cache warmup on instantiation.
175177
CCoinsViewDBCursor(CDBIterator* pcursorIn, const uint256&hashBlockIn):
176178
CCoinsViewCursor(hashBlockIn), pcursor(pcursorIn) {}
177179
~CCoinsViewDBCursor() {}

0 commit comments

Comments
 (0)