Extracting election_insertion_result class in to its own file so it can be used separate from the entire active_transactions class. (#4174)
This commit is contained in:
parent
75c6ef6f79
commit
a55f4080a1
3 changed files with 16 additions and 7 deletions
|
@ -68,6 +68,7 @@ add_library(
|
|||
distributed_work_factory.cpp
|
||||
election.hpp
|
||||
election.cpp
|
||||
election_insertion_result.hpp
|
||||
election_scheduler.hpp
|
||||
election_scheduler.cpp
|
||||
epoch_upgrader.hpp
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <nano/lib/numbers.hpp>
|
||||
#include <nano/node/election.hpp>
|
||||
#include <nano/node/election_insertion_result.hpp>
|
||||
#include <nano/node/voting.hpp>
|
||||
#include <nano/secure/common.hpp>
|
||||
|
||||
|
@ -97,13 +98,6 @@ public: // Container info
|
|||
std::unique_ptr<container_info_component> collect_container_info (std::string const &);
|
||||
};
|
||||
|
||||
class election_insertion_result final
|
||||
{
|
||||
public:
|
||||
std::shared_ptr<nano::election> election;
|
||||
bool inserted{ false };
|
||||
};
|
||||
|
||||
/**
|
||||
* Core class for determining consensus
|
||||
* Holds all active blocks i.e. recently added blocks that need confirmation
|
||||
|
|
14
nano/node/election_insertion_result.hpp
Normal file
14
nano/node/election_insertion_result.hpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace nano
|
||||
{
|
||||
class election;
|
||||
class election_insertion_result final
|
||||
{
|
||||
public:
|
||||
std::shared_ptr<nano::election> election;
|
||||
bool inserted{ false };
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue