[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:
1 parent
b14462083f
commit
2f8272c2a4
1 file changed
+2
-1
+2
-1
@@ -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();
|
m_view.GetBestBlock();
|
||||||
|
|
||||||
// we have all inputs cached now, so switch back to dummy (to protect
|
// we have all inputs cached now, so switch back to dummy (to protect
|
||||||
|
|||||||
Reference in new issue
Block a user