mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
extract some basic code from libcryptonote_core into libcryptonote_basic
This commit is contained in:
parent
99ee3fd17e
commit
8027ce0c75
104 changed files with 830 additions and 669 deletions
|
@ -32,8 +32,8 @@
|
|||
|
||||
#include <boost/program_options/variables_map.hpp>
|
||||
|
||||
#include "cryptonote_core/cryptonote_basic_impl.h"
|
||||
#include "cryptonote_core/verification_context.h"
|
||||
#include "cryptonote_basic/cryptonote_basic_impl.h"
|
||||
#include "cryptonote_basic/verification_context.h"
|
||||
#include <unordered_map>
|
||||
|
||||
namespace tests
|
||||
|
|
|
@ -37,10 +37,10 @@
|
|||
#include "console_handler.h"
|
||||
|
||||
#include "p2p/net_node.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_core/cryptonote_basic_impl.h"
|
||||
#include "cryptonote_core/cryptonote_format_utils.h"
|
||||
#include "cryptonote_core/miner.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
#include "cryptonote_basic/cryptonote_basic_impl.h"
|
||||
#include "cryptonote_basic/cryptonote_format_utils.h"
|
||||
#include "cryptonote_basic/miner.h"
|
||||
|
||||
#include "chaingen.h"
|
||||
|
||||
|
|
|
@ -44,12 +44,12 @@
|
|||
#include "common/boost_serialization_helper.h"
|
||||
#include "common/command_line.h"
|
||||
|
||||
#include "cryptonote_core/account_boost_serialization.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_core/cryptonote_basic_impl.h"
|
||||
#include "cryptonote_core/cryptonote_format_utils.h"
|
||||
#include "cryptonote_basic/account_boost_serialization.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
#include "cryptonote_basic/cryptonote_basic_impl.h"
|
||||
#include "cryptonote_basic/cryptonote_format_utils.h"
|
||||
#include "cryptonote_core/cryptonote_core.h"
|
||||
#include "cryptonote_core/cryptonote_boost_serialization.h"
|
||||
#include "cryptonote_basic/cryptonote_boost_serialization.h"
|
||||
#include "misc_language.h"
|
||||
|
||||
#undef MONERO_DEFAULT_LOG_CATEGORY
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
|
||||
#include "console_handler.h"
|
||||
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_core/cryptonote_format_utils.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
#include "cryptonote_basic/cryptonote_format_utils.h"
|
||||
|
||||
#include "chaingen.h"
|
||||
#include "chaingen_tests_list.h"
|
||||
|
|
|
@ -29,9 +29,9 @@
|
|||
// Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
|
||||
|
||||
#include "include_base_utils.h"
|
||||
#include "cryptonote_core/cryptonote_basic_impl.h"
|
||||
#include "cryptonote_core/account.h"
|
||||
#include "cryptonote_core/cryptonote_format_utils.h"
|
||||
#include "cryptonote_basic/cryptonote_basic_impl.h"
|
||||
#include "cryptonote_basic/account.h"
|
||||
#include "cryptonote_core/cryptonote_tx_utils.h"
|
||||
#include "misc_language.h"
|
||||
|
||||
using namespace cryptonote;
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include <sstream>
|
||||
#include "wallet/wallet.h"
|
||||
#include "rpc/core_rpc_server.h"
|
||||
#include "cryptonote_core/account.h"
|
||||
#include "cryptonote_basic/account.h"
|
||||
#include "net/http_client_abstract_invoke.h"
|
||||
using namespace std;
|
||||
using namespace epee::misc_utils;
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#include <algorithm>
|
||||
|
||||
#include "cryptonote_config.h"
|
||||
#include "cryptonote_core/difficulty.h"
|
||||
#include "cryptonote_basic/difficulty.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <cstring>
|
||||
#include <limits>
|
||||
#include "crypto/hash.h"
|
||||
#include "cryptonote_core/difficulty.h"
|
||||
#include "cryptonote_basic/difficulty.h"
|
||||
|
||||
using namespace std;
|
||||
using cryptonote::check_hash;
|
||||
|
|
|
@ -32,9 +32,9 @@
|
|||
|
||||
#include <vector>
|
||||
|
||||
#include "cryptonote_core/account.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_core/cryptonote_format_utils.h"
|
||||
#include "cryptonote_basic/account.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
#include "cryptonote_core/cryptonote_tx_utils.h"
|
||||
#include "crypto/crypto.h"
|
||||
#include "ringct/rctSigs.h"
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "crypto/crypto.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
|
||||
class test_cn_slow_hash
|
||||
{
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "cryptonote_core/account.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_core/cryptonote_format_utils.h"
|
||||
#include "cryptonote_basic/account.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
#include "cryptonote_core/cryptonote_tx_utils.h"
|
||||
|
||||
#include "multi_tx_test_base.h"
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "crypto/crypto.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
|
||||
#include "single_tx_test_base.h"
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "crypto/crypto.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
|
||||
#include "single_tx_test_base.h"
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "crypto/crypto.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
|
||||
#include "single_tx_test_base.h"
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "crypto/crypto.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
|
||||
#include "single_tx_test_base.h"
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "crypto/crypto.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
|
||||
#include "single_tx_test_base.h"
|
||||
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "cryptonote_core/account.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_core/cryptonote_format_utils.h"
|
||||
#include "cryptonote_basic/account.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
#include "cryptonote_basic/cryptonote_format_utils.h"
|
||||
|
||||
#include "single_tx_test_base.h"
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "crypto/crypto.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
|
||||
class test_generate_keypair
|
||||
{
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "cryptonote_core/account.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_core/cryptonote_format_utils.h"
|
||||
#include "cryptonote_basic/account.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
#include "cryptonote_core/cryptonote_tx_utils.h"
|
||||
|
||||
#include "single_tx_test_base.h"
|
||||
|
||||
|
|
|
@ -32,9 +32,9 @@
|
|||
|
||||
#include <vector>
|
||||
|
||||
#include "cryptonote_core/account.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_core/cryptonote_format_utils.h"
|
||||
#include "cryptonote_basic/account.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
#include "cryptonote_core/cryptonote_tx_utils.h"
|
||||
#include "crypto/crypto.h"
|
||||
|
||||
template<size_t a_ring_size>
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "cryptonote_core/account.h"
|
||||
#include "cryptonote_core/cryptonote_basic.h"
|
||||
#include "cryptonote_core/cryptonote_format_utils.h"
|
||||
#include "cryptonote_basic/account.h"
|
||||
#include "cryptonote_basic/cryptonote_basic.h"
|
||||
#include "cryptonote_core/cryptonote_tx_utils.h"
|
||||
|
||||
class single_tx_test_base
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "cryptonote_core/checkpoints.cpp"
|
||||
#include "cryptonote_basic/checkpoints.cpp"
|
||||
|
||||
using namespace cryptonote;
|
||||
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
{
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue