mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #6526
5d882f4f1
blockchain: fix theoretical race getting bulk timestamps (moneromooo-monero)
This commit is contained in:
commit
814e617117
1 changed files with 1 additions and 0 deletions
|
@ -962,6 +962,7 @@ start:
|
|||
//------------------------------------------------------------------
|
||||
std::vector<time_t> Blockchain::get_last_block_timestamps(unsigned int blocks) const
|
||||
{
|
||||
CRITICAL_REGION_LOCAL(m_blockchain_lock);
|
||||
uint64_t height = m_db->height();
|
||||
if (blocks > height)
|
||||
blocks = height;
|
||||
|
|
Loading…
Reference in a new issue