aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain_storage.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-03-25 08:45:19 +0200
committerRiccardo Spagni <ric@spagni.net>2016-03-25 08:45:19 +0200
commit46d4fd000cb86f96118bd9e228cfb58fb204e482 (patch)
tree9942b11a421e8743b179f341ca28c39f08843a92 /src/cryptonote_core/blockchain_storage.cpp
parent40b8a5f327c9c7e79f436e3fd007995a6a439d04 (diff)
parent01e0a69c175852adb01897431a138739faf39fe1 (diff)
downloadmonzero-core-46d4fd000cb86f96118bd9e228cfb58fb204e482.tar.gz
monzero-core-46d4fd000cb86f96118bd9e228cfb58fb204e482.tar.xz
monzero-core-46d4fd000cb86f96118bd9e228cfb58fb204e482.zip
Merge pull request #761
01e0a69 Revert "Merge pull request #749" (Riccardo Spagni)
Diffstat (limited to 'src/cryptonote_core/blockchain_storage.cpp')
-rw-r--r--src/cryptonote_core/blockchain_storage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cryptonote_core/blockchain_storage.cpp b/src/cryptonote_core/blockchain_storage.cpp
index a829b7cbe..e1b89f887 100644
--- a/src/cryptonote_core/blockchain_storage.cpp
+++ b/src/cryptonote_core/blockchain_storage.cpp
@@ -48,7 +48,7 @@
#include "common/boost_serialization_helper.h"
#include "warnings.h"
#include "crypto/hash.h"
-#include "cryptonote_core/checkpoints.h"
+#include "cryptonote_core/checkpoints_create.h"
//#include "serialization/json_archive.h"
#include "../../contrib/otshell_utils/utils.hpp"
#include "../../src/p2p/data_logger.hpp"
@@ -1854,7 +1854,7 @@ void blockchain_storage::check_against_checkpoints(const checkpoints& points, bo
// with an existing checkpoint.
bool blockchain_storage::update_checkpoints(const std::string& file_path, bool check_dns)
{
- if (!m_checkpoints.load_checkpoints_from_json(file_path))
+ if (!cryptonote::load_checkpoints_from_json(m_checkpoints, file_path))
{
return false;
}
@@ -1863,7 +1863,7 @@ bool blockchain_storage::update_checkpoints(const std::string& file_path, bool c
// if we're not hard-enforcing dns checkpoints, handle accordingly
if (m_enforce_dns_checkpoints && check_dns)
{
- if (!m_checkpoints.load_checkpoints_from_dns())
+ if (!cryptonote::load_checkpoints_from_dns(m_checkpoints))
{
return false;
}
@@ -1871,7 +1871,7 @@ bool blockchain_storage::update_checkpoints(const std::string& file_path, bool c
else if (check_dns)
{
checkpoints dns_points;
- dns_points.load_checkpoints_from_dns(m_testnet);
+ cryptonote::load_checkpoints_from_dns(dns_points, m_testnet);
if (m_checkpoints.check_for_conflicts(dns_points))
{
check_against_checkpoints(dns_points, false);