mirror of
https://github.com/monero-project/monero.git
synced 2025-07-31 23:18:42 -04:00
reload checkpoints file every ~hr and print if any fail
also some other minor bug squashing and code formatting
This commit is contained in:
parent
0e1449135d
commit
30caebfce3
11 changed files with 174 additions and 73 deletions
|
@ -206,7 +206,7 @@ int main(int argc, char* argv[])
|
|||
CHECK_AND_ASSERT_MES(res, 1, "Failed to initialize checkpoints");
|
||||
boost::filesystem::path json(JSON_HASH_FILE_NAME);
|
||||
boost::filesystem::path checkpoint_json_hashfile_fullpath = data_dir / json;
|
||||
res = cryptonote::load_checkpoins_from_json(checkpoints, checkpoint_json_hashfile_fullpath.string().c_str());
|
||||
res = cryptonote::load_checkpoints_from_json(checkpoints, checkpoint_json_hashfile_fullpath.string().c_str());
|
||||
CHECK_AND_ASSERT_MES(res, 1, "Failed to load initial checkpoints");
|
||||
|
||||
//create objects and link them
|
||||
|
@ -216,6 +216,7 @@ int main(int argc, char* argv[])
|
|||
LOG_PRINT_L0("Starting in testnet mode!");
|
||||
} else {
|
||||
ccore.set_checkpoints(std::move(checkpoints));
|
||||
ccore.set_checkpoints_file_path(checkpoint_json_hashfile_fullpath.string());
|
||||
}
|
||||
|
||||
cryptonote::t_cryptonote_protocol_handler<cryptonote::core> cprotocol(ccore, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue