aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.cpp
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@pm.me>2021-06-18 14:15:39 -0400
committerJames O'Beirne <james.obeirne@pm.me>2021-06-18 14:15:39 -0400
commit7ad414f4bfa74595ee5726e66f3527045c02a977 (patch)
tree96549e8a100f419d2d23f876279ce94886335efd /src/txdb.cpp
parent0f8a5a4dd530549d37c43da52c923ac3b2af1a03 (diff)
doc: add comment about CCoinsViewDBCursor constructor
Diffstat (limited to 'src/txdb.cpp')
-rw-r--r--src/txdb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/txdb.cpp b/src/txdb.cpp
index e6469ee159..4b76bee5ab 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() {}