|
|
|
@ -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;
|
|
|
|
|