mirror of
https://github.com/monero-project/monero.git
synced 2025-07-28 13:34:12 -04:00
move checkpoints in a separate library
This commit is contained in:
parent
85f4b600d2
commit
5d65a75b69
29 changed files with 72 additions and 67 deletions
|
@ -340,7 +340,7 @@ size_t block_queue::get_num_filled_spans() const
|
|||
crypto::hash block_queue::get_last_known_hash(const boost::uuids::uuid &connection_id) const
|
||||
{
|
||||
boost::unique_lock<boost::recursive_mutex> lock(mutex);
|
||||
crypto::hash hash = cryptonote::null_hash;
|
||||
crypto::hash hash = crypto::null_hash;
|
||||
uint64_t highest_height = 0;
|
||||
for (const auto &span: blocks)
|
||||
{
|
||||
|
|
|
@ -1484,7 +1484,7 @@ skip:
|
|||
if (!start_from_current_chain)
|
||||
{
|
||||
// we'll want to start off from where we are on that peer, which may not be added yet
|
||||
if (context.m_last_known_hash != cryptonote::null_hash && r.block_ids.front() != context.m_last_known_hash)
|
||||
if (context.m_last_known_hash != crypto::null_hash && r.block_ids.front() != context.m_last_known_hash)
|
||||
r.block_ids.push_front(context.m_last_known_hash);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue