diff options
| author | Thomas Winget <tewinget@gmail.com> | 2015-10-07 22:28:37 -0400 |
|---|---|---|
| committer | Thomas Winget <tewinget@gmail.com> | 2016-03-24 03:39:41 -0400 |
| commit | 540a76c5c29aa0742c00af4391ce718e7ec69c97 (patch) | |
| tree | 56948f3dd3e0524eb787a1ded24c623195d3b896 /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 1b0c98e7e9951fbeff8b713dd80b040e628059ff (diff) | |
| download | monzero-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.cpp | 4 |
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"); } |
