[doc] GetBestBlock() doesn't do nothing

This has tripped people up multiple times because it looks like
GetBestBlock is a const function returning the value of hashBlock.
This commit is contained in:
gzhao408 authored and glozow committed 2021-04-01 08:33:11 -07:00
1 parent b14462083f
commit 2f8272c2a4
1 file changed
+2 -1
+2 -1
View File
@@ -690,7 +690,8 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
}
}
// Bring the best block into scope
// This is const, but calls into the back end CoinsViews. The CCoinsViewDB at the bottom of the
// hierarchy brings the best block into scope. See CCoinsViewDB::GetBestBlock().
m_view.GetBestBlock();
// we have all inputs cached now, so switch back to dummy (to protect