mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-19 13:22:02 +02:00
doc: add comment about CCoinsViewDBCursor constructor
This commit is contained in:
parent
0f8a5a4dd5
commit
7ad414f4bf
@ -172,6 +172,8 @@ bool CBlockTreeDB::ReadLastBlockFile(int &nFile) {
|
|||||||
class CCoinsViewDBCursor: public CCoinsViewCursor
|
class CCoinsViewDBCursor: public CCoinsViewCursor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
// Prefer using CCoinsViewDB::Cursor() since we want to perform some
|
||||||
|
// cache warmup on instantiation.
|
||||||
CCoinsViewDBCursor(CDBIterator* pcursorIn, const uint256&hashBlockIn):
|
CCoinsViewDBCursor(CDBIterator* pcursorIn, const uint256&hashBlockIn):
|
||||||
CCoinsViewCursor(hashBlockIn), pcursor(pcursorIn) {}
|
CCoinsViewCursor(hashBlockIn), pcursor(pcursorIn) {}
|
||||||
~CCoinsViewDBCursor() {}
|
~CCoinsViewDBCursor() {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user