mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
[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:
parent
b14462083f
commit
2f8272c2a4
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue