aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.cpp
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2015-10-07 22:28:37 -0400
committerThomas Winget <tewinget@gmail.com>2016-03-24 03:39:41 -0400
commit540a76c5c29aa0742c00af4391ce718e7ec69c97 (patch)
tree56948f3dd3e0524eb787a1ded24c623195d3b896 /src/cryptonote_core/cryptonote_core.cpp
parent1b0c98e7e9951fbeff8b713dd80b040e628059ff (diff)
downloadmonzero-core-540a76c5c29aa0742c00af4391ce718e7ec69c97.tar.gz
monzero-core-540a76c5c29aa0742c00af4391ce718e7ec69c97.tar.xz
monzero-core-540a76c5c29aa0742c00af4391ce718e7ec69c97.zip
Move checkpoint functions into checkpoints class
The functions in src/cryptonote_core/checkpoints_create.{h,cpp} should be member functions of the checkpoints class, if nothing else for the sake of keeping their documentation together. This commit covers moving those functions to be member functions of the checkpoints class as well as documenting those functions.
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index 6f0fe88a4..91e969170 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -42,7 +42,7 @@ using namespace epee;
#include "cryptonote_format_utils.h"
#include "misc_language.h"
#include <csignal>
-#include "cryptonote_core/checkpoints_create.h"
+#include "cryptonote_core/checkpoints.h"
#include "blockchain_db/blockchain_db.h"
#include "blockchain_db/lmdb/db_lmdb.h"
#if defined(BERKELEY_DB)
@@ -159,7 +159,7 @@ namespace cryptonote
if (!m_testnet && !m_fakechain)
{
cryptonote::checkpoints checkpoints;
- if (!cryptonote::create_checkpoints(checkpoints))
+ if (!checkpoints.init_default_checkpoints())
{
throw std::runtime_error("Failed to initialize checkpoints");
}