Extracting block_w_sideband to its own file

This commit is contained in:
Colin LeMahieu 2024-09-26 12:29:38 +01:00
commit 057cacd6fd
No known key found for this signature in database
GPG key ID: 43708520C8DFB938
3 changed files with 21 additions and 6 deletions

View file

@ -2,6 +2,7 @@ add_library(
nano_store
account.hpp
block.hpp
block_w_sideband.hpp
component.hpp
confirmation_height.hpp
db_val.hpp

View file

@ -2,6 +2,7 @@
#include <nano/lib/block_sideband.hpp>
#include <nano/lib/numbers.hpp>
#include <nano/store/block_w_sideband.hpp>
#include <nano/store/component.hpp>
#include <nano/store/iterator.hpp>
@ -15,12 +16,6 @@ class block_hash;
}
namespace nano::store
{
class block_w_sideband
{
public:
std::shared_ptr<nano::block> block;
nano::block_sideband sideband;
};
/**
* Manages block storage and iteration
*/

View file

@ -0,0 +1,19 @@
#pragma once
#include <nano/lib/block_sideband.hpp>
#include <memory>
namespace nano
{
class block;
}
namespace nano::store
{
class block_w_sideband
{
public:
std::shared_ptr<nano::block> block;
nano::block_sideband sideband;
};
}