Remove inclusion of vote in common.hpp header.
This commit is contained in:
parent
dc69e54751
commit
d09940f645
41 changed files with 83 additions and 16 deletions
|
|
@ -11,6 +11,7 @@
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
#include <nano/secure/ledger_set_any.hpp>
|
#include <nano/secure/ledger_set_any.hpp>
|
||||||
#include <nano/secure/ledger_set_confirmed.hpp>
|
#include <nano/secure/ledger_set_confirmed.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/test_common/chains.hpp>
|
#include <nano/test_common/chains.hpp>
|
||||||
#include <nano/test_common/system.hpp>
|
#include <nano/test_common/system.hpp>
|
||||||
#include <nano/test_common/testutil.hpp>
|
#include <nano/test_common/testutil.hpp>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include <nano/lib/block_uniquer.hpp>
|
||||||
#include <nano/lib/blocks.hpp>
|
#include <nano/lib/blocks.hpp>
|
||||||
#include <nano/lib/stream.hpp>
|
#include <nano/lib/stream.hpp>
|
||||||
#include <nano/lib/work_version.hpp>
|
#include <nano/lib/work_version.hpp>
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
#include <nano/node/scheduler/component.hpp>
|
#include <nano/node/scheduler/component.hpp>
|
||||||
#include <nano/node/scheduler/priority.hpp>
|
#include <nano/node/scheduler/priority.hpp>
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/test_common/chains.hpp>
|
#include <nano/test_common/chains.hpp>
|
||||||
#include <nano/test_common/system.hpp>
|
#include <nano/test_common/system.hpp>
|
||||||
#include <nano/test_common/testutil.hpp>
|
#include <nano/test_common/testutil.hpp>
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
#include <nano/node/vote_router.hpp>
|
#include <nano/node/vote_router.hpp>
|
||||||
#include <nano/secure/ledger_set_any.hpp>
|
#include <nano/secure/ledger_set_any.hpp>
|
||||||
#include <nano/secure/ledger_set_confirmed.hpp>
|
#include <nano/secure/ledger_set_confirmed.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/store/rocksdb/rocksdb.hpp>
|
#include <nano/store/rocksdb/rocksdb.hpp>
|
||||||
#include <nano/test_common/ledger_context.hpp>
|
#include <nano/test_common/ledger_context.hpp>
|
||||||
#include <nano/test_common/make_store.hpp>
|
#include <nano/test_common/make_store.hpp>
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
#include <nano/lib/memory.hpp>
|
#include <nano/lib/memory.hpp>
|
||||||
#include <nano/node/active_elections.hpp>
|
#include <nano/node/active_elections.hpp>
|
||||||
#include <nano/secure/common.hpp>
|
#include <nano/secure/common.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
#include <nano/lib/stream.hpp>
|
#include <nano/lib/stream.hpp>
|
||||||
#include <nano/node/endpoint.hpp>
|
#include <nano/node/endpoint.hpp>
|
||||||
#include <nano/node/network.hpp>
|
#include <nano/node/network.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/test_common/testutil.hpp>
|
#include <nano/test_common/testutil.hpp>
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
#include <nano/lib/blocks.hpp>
|
#include <nano/lib/blocks.hpp>
|
||||||
#include <nano/node/transport/message_deserializer.hpp>
|
#include <nano/node/transport/message_deserializer.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/test_common/system.hpp>
|
#include <nano/test_common/system.hpp>
|
||||||
#include <nano/test_common/testutil.hpp>
|
#include <nano/test_common/testutil.hpp>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
#include <nano/secure/ledger_set_any.hpp>
|
#include <nano/secure/ledger_set_any.hpp>
|
||||||
#include <nano/secure/ledger_set_confirmed.hpp>
|
#include <nano/secure/ledger_set_confirmed.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/test_common/network.hpp>
|
#include <nano/test_common/network.hpp>
|
||||||
#include <nano/test_common/system.hpp>
|
#include <nano/test_common/system.hpp>
|
||||||
#include <nano/test_common/testutil.hpp>
|
#include <nano/test_common/testutil.hpp>
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
#include <nano/node/transport/fake.hpp>
|
#include <nano/node/transport/fake.hpp>
|
||||||
#include <nano/node/transport/inproc.hpp>
|
#include <nano/node/transport/inproc.hpp>
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/test_common/chains.hpp>
|
#include <nano/test_common/chains.hpp>
|
||||||
#include <nano/test_common/network.hpp>
|
#include <nano/test_common/network.hpp>
|
||||||
#include <nano/test_common/system.hpp>
|
#include <nano/test_common/system.hpp>
|
||||||
|
|
@ -327,4 +328,4 @@ TEST (rep_crawler, ignore_rebroadcasted)
|
||||||
};
|
};
|
||||||
|
|
||||||
ASSERT_NEVER (1s, tick () || node1.rep_crawler.representative_count () > 0);
|
ASSERT_NEVER (1s, tick () || node1.rep_crawler.representative_count () > 0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
#include <nano/node/vote_processor.hpp>
|
#include <nano/node/vote_processor.hpp>
|
||||||
#include <nano/node/vote_router.hpp>
|
#include <nano/node/vote_router.hpp>
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/test_common/chains.hpp>
|
#include <nano/test_common/chains.hpp>
|
||||||
#include <nano/test_common/system.hpp>
|
#include <nano/test_common/system.hpp>
|
||||||
#include <nano/test_common/testutil.hpp>
|
#include <nano/test_common/testutil.hpp>
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
#include <nano/node/vote_generator.hpp>
|
#include <nano/node/vote_generator.hpp>
|
||||||
#include <nano/node/vote_spacing.hpp>
|
#include <nano/node/vote_spacing.hpp>
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/test_common/system.hpp>
|
#include <nano/test_common/system.hpp>
|
||||||
#include <nano/test_common/testutil.hpp>
|
#include <nano/test_common/testutil.hpp>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
#include <nano/crypto_lib/random_pool.hpp>
|
#include <nano/crypto_lib/random_pool.hpp>
|
||||||
#include <nano/lib/block_type.hpp>
|
#include <nano/lib/block_type.hpp>
|
||||||
|
#include <nano/lib/block_uniquer.hpp>
|
||||||
#include <nano/lib/blocks.hpp>
|
#include <nano/lib/blocks.hpp>
|
||||||
#include <nano/lib/enum_util.hpp>
|
#include <nano/lib/enum_util.hpp>
|
||||||
#include <nano/lib/memory.hpp>
|
#include <nano/lib/memory.hpp>
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
#include <nano/node/transport/inproc.hpp>
|
#include <nano/node/transport/inproc.hpp>
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
#include <nano/secure/ledger_set_any.hpp>
|
#include <nano/secure/ledger_set_any.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/store/pending.hpp>
|
#include <nano/store/pending.hpp>
|
||||||
|
|
||||||
#include <boost/dll/runtime_symbol_info.hpp>
|
#include <boost/dll/runtime_symbol_info.hpp>
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,11 @@
|
||||||
#include <nano/node/fwd.hpp>
|
#include <nano/node/fwd.hpp>
|
||||||
#include <nano/node/transport/traffic_type.hpp>
|
#include <nano/node/transport/traffic_type.hpp>
|
||||||
|
|
||||||
|
namespace nano
|
||||||
|
{
|
||||||
|
class node_config;
|
||||||
|
}
|
||||||
|
|
||||||
namespace nano
|
namespace nano
|
||||||
{
|
{
|
||||||
class bandwidth_limiter_config final
|
class bandwidth_limiter_config final
|
||||||
|
|
@ -50,4 +55,4 @@ private:
|
||||||
nano::rate_limiter limiter_generic;
|
nano::rate_limiter limiter_generic;
|
||||||
nano::rate_limiter limiter_bootstrap;
|
nano::rate_limiter limiter_bootstrap;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <nano/lib/numbers.hpp>
|
||||||
#include <nano/node/bootstrap/bootstrap_connections.hpp>
|
#include <nano/node/bootstrap/bootstrap_connections.hpp>
|
||||||
#include <nano/node/endpoint.hpp>
|
#include <nano/node/endpoint.hpp>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#include <nano/node/bootstrap/bootstrap.hpp>
|
#include <nano/node/bootstrap/bootstrap.hpp>
|
||||||
|
|
||||||
|
#include <boost/property_tree/ptree.hpp>
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <future>
|
#include <future>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,12 @@ namespace mi = boost::multi_index;
|
||||||
|
|
||||||
namespace nano
|
namespace nano
|
||||||
{
|
{
|
||||||
|
class account_sets_config;
|
||||||
class stats;
|
class stats;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace nano
|
||||||
|
{
|
||||||
namespace bootstrap_ascending
|
namespace bootstrap_ascending
|
||||||
{
|
{
|
||||||
/** This class tracks accounts various account sets which are shared among the multiple bootstrap threads */
|
/** This class tracks accounts various account sets which are shared among the multiple bootstrap threads */
|
||||||
|
|
@ -161,4 +165,4 @@ namespace bootstrap_ascending
|
||||||
info_t info () const;
|
info_t info () const;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,14 @@
|
||||||
|
|
||||||
namespace mi = boost::multi_index;
|
namespace mi = boost::multi_index;
|
||||||
|
|
||||||
|
namespace nano
|
||||||
|
{
|
||||||
|
class election;
|
||||||
|
class ledger;
|
||||||
|
class logger;
|
||||||
|
class stats;
|
||||||
|
}
|
||||||
|
|
||||||
namespace nano
|
namespace nano
|
||||||
{
|
{
|
||||||
class confirming_set_config final
|
class confirming_set_config final
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
#include <nano/node/vote_generator.hpp>
|
#include <nano/node/vote_generator.hpp>
|
||||||
#include <nano/node/vote_router.hpp>
|
#include <nano/node/vote_router.hpp>
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
|
|
||||||
using namespace std::chrono;
|
using namespace std::chrono;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
#include <nano/node/endpoint.hpp>
|
#include <nano/node/endpoint.hpp>
|
||||||
#include <nano/node/network.hpp>
|
#include <nano/node/network.hpp>
|
||||||
#include <nano/node/wallet.hpp>
|
#include <nano/node/wallet.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
|
|
||||||
#include <boost/format.hpp>
|
#include <boost/format.hpp>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,12 @@
|
||||||
#include <nano/lib/tomlconfig.hpp>
|
#include <nano/lib/tomlconfig.hpp>
|
||||||
#include <nano/node/ipc/ipc_config.hpp>
|
#include <nano/node/ipc/ipc_config.hpp>
|
||||||
|
|
||||||
|
nano::ipc::ipc_config_tcp_socket::ipc_config_tcp_socket (nano::network_constants & network_constants) :
|
||||||
|
network_constants{ network_constants },
|
||||||
|
port{ network_constants.default_ipc_port }
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
nano::error nano::ipc::ipc_config::serialize_toml (nano::tomlconfig & toml) const
|
nano::error nano::ipc::ipc_config::serialize_toml (nano::tomlconfig & toml) const
|
||||||
{
|
{
|
||||||
nano::tomlconfig tcp_l;
|
nano::tomlconfig tcp_l;
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,12 @@
|
||||||
|
|
||||||
namespace nano
|
namespace nano
|
||||||
{
|
{
|
||||||
|
class network_constants;
|
||||||
class tomlconfig;
|
class tomlconfig;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace nano
|
||||||
|
{
|
||||||
namespace ipc
|
namespace ipc
|
||||||
{
|
{
|
||||||
/** Base class for transport configurations */
|
/** Base class for transport configurations */
|
||||||
|
|
@ -46,11 +51,7 @@ namespace ipc
|
||||||
class ipc_config_tcp_socket : public ipc_config_transport
|
class ipc_config_tcp_socket : public ipc_config_transport
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ipc_config_tcp_socket (nano::network_constants & network_constants) :
|
ipc_config_tcp_socket (nano::network_constants & network_constants);
|
||||||
network_constants{ network_constants },
|
|
||||||
port{ network_constants.default_ipc_port }
|
|
||||||
{
|
|
||||||
}
|
|
||||||
nano::network_constants & network_constants;
|
nano::network_constants & network_constants;
|
||||||
/** Listening port */
|
/** Listening port */
|
||||||
uint16_t port;
|
uint16_t port;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <nano/lib/blocks.hpp>
|
#include <nano/lib/blocks.hpp>
|
||||||
|
#include <nano/lib/interval.hpp>
|
||||||
#include <nano/lib/locks.hpp>
|
#include <nano/lib/locks.hpp>
|
||||||
#include <nano/lib/processing_queue.hpp>
|
#include <nano/lib/processing_queue.hpp>
|
||||||
#include <nano/lib/rate_limiting.hpp>
|
#include <nano/lib/rate_limiting.hpp>
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
#include <nano/node/message_processor.hpp>
|
#include <nano/node/message_processor.hpp>
|
||||||
#include <nano/node/node.hpp>
|
#include <nano/node/node.hpp>
|
||||||
#include <nano/node/telemetry.hpp>
|
#include <nano/node/telemetry.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
|
|
||||||
nano::message_processor::message_processor (message_processor_config const & config_a, nano::node & node_a) :
|
nano::message_processor::message_processor (message_processor_config const & config_a, nano::node & node_a) :
|
||||||
config{ config_a },
|
config{ config_a },
|
||||||
|
|
@ -317,4 +318,4 @@ nano::error nano::message_processor_config::deserialize (nano::tomlconfig & toml
|
||||||
toml.get ("max_queue", max_queue);
|
toml.get ("max_queue", max_queue);
|
||||||
|
|
||||||
return toml.get_error ();
|
return toml.get_error ();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
#include <nano/node/endpoint.hpp>
|
#include <nano/node/endpoint.hpp>
|
||||||
#include <nano/node/messages.hpp>
|
#include <nano/node/messages.hpp>
|
||||||
#include <nano/node/network.hpp>
|
#include <nano/node/network.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
|
|
||||||
#include <boost/asio/ip/address_v6.hpp>
|
#include <boost/asio/ip/address_v6.hpp>
|
||||||
#include <boost/endian/conversion.hpp>
|
#include <boost/endian/conversion.hpp>
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,10 @@ class block;
|
||||||
class jsonconfig;
|
class jsonconfig;
|
||||||
template <typename Key, typename Value>
|
template <typename Key, typename Value>
|
||||||
class uniquer;
|
class uniquer;
|
||||||
|
class vote;
|
||||||
|
|
||||||
using block_uniquer = uniquer<nano::uint256_union, nano::block>;
|
using block_uniquer = uniquer<nano::uint256_union, nano::block>;
|
||||||
|
using vote_uniquer = uniquer<nano::block_hash, nano::vote>;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace nano
|
namespace nano
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
#include <nano/secure/ledger_set_any.hpp>
|
#include <nano/secure/ledger_set_any.hpp>
|
||||||
#include <nano/secure/ledger_set_confirmed.hpp>
|
#include <nano/secure/ledger_set_confirmed.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/store/component.hpp>
|
#include <nano/store/component.hpp>
|
||||||
#include <nano/store/rocksdb/rocksdb.hpp>
|
#include <nano/store/rocksdb/rocksdb.hpp>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
#include <nano/node/node.hpp>
|
#include <nano/node/node.hpp>
|
||||||
#include <nano/node/repcrawler.hpp>
|
#include <nano/node/repcrawler.hpp>
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
|
|
||||||
#include <ranges>
|
#include <ranges>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <nano/lib/errors.hpp>
|
||||||
|
#include <nano/lib/numbers.hpp>
|
||||||
#include <nano/node/fwd.hpp>
|
#include <nano/node/fwd.hpp>
|
||||||
#include <nano/secure/common.hpp>
|
#include <nano/secure/common.hpp>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
#include <nano/node/node.hpp>
|
#include <nano/node/node.hpp>
|
||||||
#include <nano/node/vote_cache.hpp>
|
#include <nano/node/vote_cache.hpp>
|
||||||
#include <nano/node/vote_router.hpp>
|
#include <nano/node/vote_router.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
|
|
||||||
#include <ranges>
|
#include <ranges>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
#include <nano/node/wallet.hpp>
|
#include <nano/node/wallet.hpp>
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
#include <nano/secure/ledger_set_any.hpp>
|
#include <nano/secure/ledger_set_any.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/store/component.hpp>
|
#include <nano/store/component.hpp>
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|
@ -326,4 +327,4 @@ nano::container_info nano::vote_generator::container_info () const
|
||||||
info.put ("requests", requests.size ());
|
info.put ("requests", requests.size ());
|
||||||
info.add ("queue", vote_generation_queue.container_info ());
|
info.add ("queue", vote_generation_queue.container_info ());
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
#include <nano/node/vote_router.hpp>
|
#include <nano/node/vote_router.hpp>
|
||||||
#include <nano/secure/common.hpp>
|
#include <nano/secure/common.hpp>
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|
||||||
|
|
@ -376,4 +377,4 @@ nano::error nano::vote_processor_config::deserialize (nano::tomlconfig & toml)
|
||||||
toml.get ("batch_size", batch_size);
|
toml.get ("batch_size", batch_size);
|
||||||
|
|
||||||
return toml.get_error ();
|
return toml.get_error ();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
#include <nano/node/election.hpp>
|
#include <nano/node/election.hpp>
|
||||||
#include <nano/node/vote_cache.hpp>
|
#include <nano/node/vote_cache.hpp>
|
||||||
#include <nano/node/vote_router.hpp>
|
#include <nano/node/vote_router.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|
||||||
|
|
@ -192,4 +193,4 @@ nano::container_info nano::vote_router::container_info () const
|
||||||
nano::container_info info;
|
nano::container_info info;
|
||||||
info.put ("elections", elections);
|
info.put ("elections", elections);
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
#include <nano/node/wallet.hpp>
|
#include <nano/node/wallet.hpp>
|
||||||
#include <nano/node/websocket.hpp>
|
#include <nano/node/websocket.hpp>
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
|
|
||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
#include <boost/property_tree/json_parser.hpp>
|
#include <boost/property_tree/json_parser.hpp>
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
#include <nano/secure/ledger_set_any.hpp>
|
#include <nano/secure/ledger_set_any.hpp>
|
||||||
#include <nano/secure/ledger_set_confirmed.hpp>
|
#include <nano/secure/ledger_set_confirmed.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/test_common/chains.hpp>
|
#include <nano/test_common/chains.hpp>
|
||||||
#include <nano/test_common/network.hpp>
|
#include <nano/test_common/network.hpp>
|
||||||
#include <nano/test_common/system.hpp>
|
#include <nano/test_common/system.hpp>
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@
|
||||||
#include <nano/lib/numbers.hpp>
|
#include <nano/lib/numbers.hpp>
|
||||||
#include <nano/lib/object_stream.hpp>
|
#include <nano/lib/object_stream.hpp>
|
||||||
#include <nano/lib/stats.hpp>
|
#include <nano/lib/stats.hpp>
|
||||||
|
#include <nano/lib/stream_fwd.hpp>
|
||||||
#include <nano/lib/timer.hpp>
|
#include <nano/lib/timer.hpp>
|
||||||
#include <nano/lib/utility.hpp>
|
#include <nano/lib/utility.hpp>
|
||||||
#include <nano/secure/rep_weights.hpp>
|
#include <nano/secure/rep_weights.hpp>
|
||||||
#include <nano/secure/vote.hpp>
|
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
#include <nano/secure/ledger_set_any.hpp>
|
#include <nano/secure/ledger_set_any.hpp>
|
||||||
#include <nano/secure/ledger_set_confirmed.hpp>
|
#include <nano/secure/ledger_set_confirmed.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/test_common/network.hpp>
|
#include <nano/test_common/network.hpp>
|
||||||
#include <nano/test_common/system.hpp>
|
#include <nano/test_common/system.hpp>
|
||||||
#include <nano/test_common/testutil.hpp>
|
#include <nano/test_common/testutil.hpp>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
#include <nano/lib/blocks.hpp>
|
#include <nano/lib/blocks.hpp>
|
||||||
#include <nano/node/transport/inproc.hpp>
|
#include <nano/node/transport/inproc.hpp>
|
||||||
#include <nano/node/vote_processor.hpp>
|
#include <nano/node/vote_processor.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/test_common/system.hpp>
|
#include <nano/test_common/system.hpp>
|
||||||
#include <nano/test_common/testutil.hpp>
|
#include <nano/test_common/testutil.hpp>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
#include <boost/endian/conversion.hpp>
|
#include <boost/endian/conversion.hpp>
|
||||||
#include <boost/polymorphic_cast.hpp>
|
#include <boost/polymorphic_cast.hpp>
|
||||||
|
#include <boost/property_tree/ptree.hpp>
|
||||||
|
|
||||||
#include <stack>
|
#include <stack>
|
||||||
|
|
||||||
|
|
@ -25,10 +26,15 @@ namespace store
|
||||||
class peer;
|
class peer;
|
||||||
class pending;
|
class pending;
|
||||||
class pruned;
|
class pruned;
|
||||||
class version;
|
class read_transaction;
|
||||||
class rep_weight;
|
class rep_weight;
|
||||||
|
class transaction;
|
||||||
|
class version;
|
||||||
|
class write_transaction;
|
||||||
}
|
}
|
||||||
class ledger_cache;
|
class ledger_cache;
|
||||||
|
class ledger_constants;
|
||||||
|
enum class tables;
|
||||||
|
|
||||||
namespace store
|
namespace store
|
||||||
{
|
{
|
||||||
|
|
@ -89,8 +95,8 @@ namespace store
|
||||||
virtual void rebuild_db (write_transaction const & transaction_a) = 0;
|
virtual void rebuild_db (write_transaction const & transaction_a) = 0;
|
||||||
|
|
||||||
/** Not applicable to all sub-classes */
|
/** Not applicable to all sub-classes */
|
||||||
virtual void serialize_mdb_tracker (boost::property_tree::ptree &, std::chrono::milliseconds, std::chrono::milliseconds){};
|
virtual void serialize_mdb_tracker (::boost::property_tree::ptree &, std::chrono::milliseconds, std::chrono::milliseconds){};
|
||||||
virtual void serialize_memory_stats (boost::property_tree::ptree &) = 0;
|
virtual void serialize_memory_stats (::boost::property_tree::ptree &) = 0;
|
||||||
|
|
||||||
virtual bool init_error () const = 0;
|
virtual bool init_error () const = 0;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ class account_info_v22;
|
||||||
class block;
|
class block;
|
||||||
class pending_info;
|
class pending_info;
|
||||||
class pending_key;
|
class pending_key;
|
||||||
|
class vote;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace nano::store
|
namespace nano::store
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
#include <nano/secure/ledger_set_any.hpp>
|
#include <nano/secure/ledger_set_any.hpp>
|
||||||
#include <nano/secure/ledger_set_confirmed.hpp>
|
#include <nano/secure/ledger_set_confirmed.hpp>
|
||||||
|
#include <nano/secure/vote.hpp>
|
||||||
#include <nano/store/block.hpp>
|
#include <nano/store/block.hpp>
|
||||||
#include <nano/test_common/system.hpp>
|
#include <nano/test_common/system.hpp>
|
||||||
#include <nano/test_common/testutil.hpp>
|
#include <nano/test_common/testutil.hpp>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue