doc: add comment about CCoinsViewDBCursor constructor

This commit is contained in:
James O'Beirne committed 2021-06-18 14:15:39 -04:00
1 parent 0f8a5a4dd5
commit 7ad414f4bf
1 file changed
+2
+2
View File
@@ -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() {}