mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +00:00
Merge pull request #31 from warptangent/fix/fix_get_tail_id
Fix Blockchain::get_tail_id() to set parameter to last block number instead of height
This commit is contained in:
commit
b7d112f601
2 changed files with 2 additions and 2 deletions
|
@ -1053,7 +1053,7 @@ uint64_t BlockchainLMDB::height() const
|
|||
LOG_PRINT_L3("BlockchainLMDB::" << __func__);
|
||||
check_open();
|
||||
|
||||
return m_height - 1;
|
||||
return m_height;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -463,7 +463,7 @@ crypto::hash Blockchain::get_tail_id(uint64_t& height) const
|
|||
{
|
||||
LOG_PRINT_L3("Blockchain::" << __func__);
|
||||
CRITICAL_REGION_LOCAL(m_blockchain_lock);
|
||||
height = m_db->height();
|
||||
height = m_db->height() - 1;
|
||||
return get_tail_id();
|
||||
}
|
||||
//------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue