extract some basic code from libcryptonote_core into libcryptonote_basic

This commit is contained in:
kenshi84 2017-01-27 00:07:23 +09:00
parent 99ee3fd17e
commit 8027ce0c75
104 changed files with 830 additions and 669 deletions

View file

@ -49,7 +49,7 @@ set(unit_tests_sources
parse_amount.cpp
serialization.cpp
slow_memmem.cpp
test_format_utils.cpp
test_tx_utils.cpp
test_peerlist.cpp
test_protocol_pack.cpp
thread_group.cpp

View file

@ -33,7 +33,7 @@
#include <cstdint>
#include "common/base58.cpp"
#include "cryptonote_core/cryptonote_basic_impl.h"
#include "cryptonote_basic/cryptonote_basic_impl.h"
#include "serialization/binary_utils.h"
using namespace tools;

View file

@ -30,7 +30,7 @@
#include "gtest/gtest.h"
#include "cryptonote_core/cryptonote_basic_impl.h"
#include "cryptonote_basic/cryptonote_basic_impl.h"
using namespace cryptonote;

View file

@ -40,7 +40,7 @@
#ifdef BERKELEY_DB
#include "blockchain_db/berkeleydb/db_bdb.h"
#endif
#include "cryptonote_core/cryptonote_format_utils.h"
#include "cryptonote_basic/cryptonote_format_utils.h"
using namespace cryptonote;
using epee::string_tools::pod_to_hex;

View file

@ -29,7 +29,7 @@
// Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
#include "gtest/gtest.h"
#include "cryptonote_core/cryptonote_format_utils.h"
#include "cryptonote_basic/cryptonote_format_utils.h"
static const uint64_t valid_decomposed_outputs[] = {
(uint64_t)1, (uint64_t)2, (uint64_t)3, (uint64_t)4, (uint64_t)5, (uint64_t)6, (uint64_t)7, (uint64_t)8, (uint64_t)9, // 1 piconero

View file

@ -30,7 +30,7 @@
#include "gtest/gtest.h"
#include "cryptonote_core/checkpoints.cpp"
#include "cryptonote_basic/checkpoints.cpp"
using namespace cryptonote;

View file

@ -33,7 +33,7 @@
#include <cstdint>
#include <vector>
#include "cryptonote_core/cryptonote_format_utils.h"
#include "cryptonote_basic/cryptonote_format_utils.h"
#define VEC_FROM_ARR(vec) \
std::vector<uint64_t> vec; \

View file

@ -32,7 +32,7 @@
#include "gtest/gtest.h"
#include "blockchain_db/lmdb/db_lmdb.h"
#include "cryptonote_core/hardfork.h"
#include "cryptonote_basic/hardfork.h"
using namespace cryptonote;

View file

@ -30,7 +30,7 @@
#include "gtest/gtest.h"
#include "cryptonote_core/cryptonote_format_utils.h"
#include "cryptonote_basic/cryptonote_format_utils.h"
using namespace cryptonote;

View file

@ -35,8 +35,8 @@
#include <vector>
#include <boost/foreach.hpp>
#include <boost/archive/portable_binary_iarchive.hpp>
#include "cryptonote_core/cryptonote_basic.h"
#include "cryptonote_core/cryptonote_basic_impl.h"
#include "cryptonote_basic/cryptonote_basic.h"
#include "cryptonote_basic/cryptonote_basic_impl.h"
#include "ringct/rctSigs.h"
#include "serialization/serialization.h"
#include "serialization/binary_archive.h"

View file

@ -33,7 +33,7 @@
#include <vector>
#include "common/util.h"
#include "cryptonote_core/cryptonote_format_utils.h"
#include "cryptonote_core/cryptonote_tx_utils.h"
namespace
{

View file

@ -34,8 +34,8 @@
#include <iostream>
#include <vector>
#include <boost/foreach.hpp>
#include "cryptonote_core/cryptonote_basic.h"
#include "cryptonote_core/cryptonote_basic_impl.h"
#include "cryptonote_basic/cryptonote_basic.h"
#include "cryptonote_basic/cryptonote_basic_impl.h"
#include "serialization/serialization.h"
#include "serialization/binary_archive.h"
#include "serialization/json_archive.h"