reload checkpoints file every ~hr and print if any fail

also some other minor bug squashing and code formatting
This commit is contained in:
Thomas Winget 2014-09-25 01:15:28 -04:00
parent 0e1449135d
commit 30caebfce3
11 changed files with 174 additions and 73 deletions

View file

@ -98,6 +98,7 @@ namespace cryptonote
uint64_t checkpoint_height = it->first;
return checkpoint_height < block_height;
}
//---------------------------------------------------------------------------
uint64_t checkpoints::get_max_height()
{
std::map< uint64_t, crypto::hash >::const_iterator highest =
@ -106,5 +107,10 @@ namespace cryptonote
boost::bind(&std::map< uint64_t, crypto::hash >::value_type::first, _2 ) ) );
return highest->first;
}
//---------------------------------------------------------------------------
const std::map<uint64_t, crypto::hash>& checkpoints::get_points()
{
return m_points;
}
}