Splitting block_uniquer in to its own file
This commit is contained in:
parent
d4cbf1eaf3
commit
15979e856e
5 changed files with 14 additions and 3 deletions
|
@ -25,6 +25,7 @@ add_library(
|
|||
block_sideband.cpp
|
||||
block_type.hpp
|
||||
block_type.cpp
|
||||
block_uniquer.hpp
|
||||
blockbuilders.hpp
|
||||
blockbuilders.cpp
|
||||
blocks.hpp
|
||||
|
|
10
nano/lib/block_uniquer.hpp
Normal file
10
nano/lib/block_uniquer.hpp
Normal file
|
@ -0,0 +1,10 @@
|
|||
#pragma once
|
||||
|
||||
#include <nano/lib/numbers.hpp>
|
||||
#include <nano/lib/uniquer.hpp>
|
||||
|
||||
namespace nano
|
||||
{
|
||||
class block;
|
||||
using block_uniquer = nano::uniquer<nano::uint256_union, nano::block>;
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <nano/crypto/blake2/blake2.h>
|
||||
#include <nano/lib/block_sideband.hpp>
|
||||
#include <nano/lib/block_uniquer.hpp>
|
||||
#include <nano/lib/epoch.hpp>
|
||||
#include <nano/lib/errors.hpp>
|
||||
#include <nano/lib/numbers.hpp>
|
||||
|
@ -9,7 +10,6 @@
|
|||
#include <nano/lib/optional_ptr.hpp>
|
||||
#include <nano/lib/stream.hpp>
|
||||
#include <nano/lib/timer.hpp>
|
||||
#include <nano/lib/uniquer.hpp>
|
||||
#include <nano/lib/utility.hpp>
|
||||
#include <nano/lib/work.hpp>
|
||||
|
||||
|
@ -378,8 +378,6 @@ public:
|
|||
virtual ~mutable_block_visitor () = default;
|
||||
};
|
||||
|
||||
using block_uniquer = nano::uniquer<nano::uint256_union, nano::block>;
|
||||
|
||||
std::shared_ptr<nano::block> deserialize_block (nano::stream &);
|
||||
std::shared_ptr<nano::block> deserialize_block (nano::stream &, nano::block_type, nano::block_uniquer * = nullptr);
|
||||
std::shared_ptr<nano::block> deserialize_block_json (boost::property_tree::ptree const &, nano::block_uniquer * = nullptr);
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <nano/lib/asio.hpp>
|
||||
#include <nano/lib/block_uniquer.hpp>
|
||||
#include <nano/lib/blocks.hpp>
|
||||
#include <nano/lib/config.hpp>
|
||||
#include <nano/lib/errors.hpp>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <nano/lib/block_uniquer.hpp>
|
||||
#include <nano/lib/config.hpp>
|
||||
#include <nano/lib/logging.hpp>
|
||||
#include <nano/lib/stats.hpp>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue