Moving implementation in to nano::store
This commit is contained in:
parent
ece73c3605
commit
fa3240b2c1
33 changed files with 40 additions and 37 deletions
|
|
@ -112,20 +112,6 @@ add_library(
|
||||||
json_handler.cpp
|
json_handler.cpp
|
||||||
ledger_walker.hpp
|
ledger_walker.hpp
|
||||||
ledger_walker.cpp
|
ledger_walker.cpp
|
||||||
lmdb/account_store.cpp
|
|
||||||
lmdb/block_store.cpp
|
|
||||||
lmdb/confirmation_height_store.cpp
|
|
||||||
lmdb/final_vote_store.cpp
|
|
||||||
lmdb/frontier_store.cpp
|
|
||||||
lmdb/online_weight_store.cpp
|
|
||||||
lmdb/peer_store.cpp
|
|
||||||
lmdb/pending_store.cpp
|
|
||||||
lmdb/pruned_store.cpp
|
|
||||||
lmdb/version_store.cpp
|
|
||||||
lmdb/lmdb.cpp
|
|
||||||
lmdb/lmdb_env.cpp
|
|
||||||
lmdb/lmdb_txn.cpp
|
|
||||||
lmdb/wallet_value.cpp
|
|
||||||
logging.hpp
|
logging.hpp
|
||||||
logging.cpp
|
logging.cpp
|
||||||
make_store.hpp
|
make_store.hpp
|
||||||
|
|
@ -156,18 +142,6 @@ add_library(
|
||||||
repcrawler.cpp
|
repcrawler.cpp
|
||||||
request_aggregator.hpp
|
request_aggregator.hpp
|
||||||
request_aggregator.cpp
|
request_aggregator.cpp
|
||||||
rocksdb/account_store.cpp
|
|
||||||
rocksdb/block_store.cpp
|
|
||||||
rocksdb/confirmation_height_store.cpp
|
|
||||||
rocksdb/final_vote_store.cpp
|
|
||||||
rocksdb/frontier_store.cpp
|
|
||||||
rocksdb/online_weight_store.cpp
|
|
||||||
rocksdb/peer_store.cpp
|
|
||||||
rocksdb/pending_store.cpp
|
|
||||||
rocksdb/pruned_store.cpp
|
|
||||||
rocksdb/version_store.cpp
|
|
||||||
rocksdb/rocksdb.cpp
|
|
||||||
rocksdb/rocksdb_txn.cpp
|
|
||||||
scheduler/bucket.cpp
|
scheduler/bucket.cpp
|
||||||
scheduler/bucket.hpp
|
scheduler/bucket.hpp
|
||||||
scheduler/buckets.cpp
|
scheduler/buckets.cpp
|
||||||
|
|
@ -232,10 +206,10 @@ endif()
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
node
|
node
|
||||||
|
nano_store
|
||||||
rpc
|
rpc
|
||||||
secure
|
secure
|
||||||
nano_lib
|
nano_lib
|
||||||
nano_store
|
|
||||||
libminiupnpc-static
|
libminiupnpc-static
|
||||||
argon2
|
argon2
|
||||||
lmdb
|
lmdb
|
||||||
|
|
@ -262,6 +236,5 @@ add_dependencies(node ipc_flatbuffers_lib)
|
||||||
|
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/submodules)
|
include_directories(${CMAKE_SOURCE_DIR}/submodules)
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/submodules/cpptoml/include)
|
include_directories(${CMAKE_SOURCE_DIR}/submodules/cpptoml/include)
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/submodules/lmdb)
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_SOURCE_DIR}/submodules/nano-pow-server/deps/cpptoml/include)
|
${CMAKE_SOURCE_DIR}/submodules/nano-pow-server/deps/cpptoml/include)
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@ add_library(
|
||||||
network_filter.cpp
|
network_filter.cpp
|
||||||
utility.hpp
|
utility.hpp
|
||||||
utility.cpp
|
utility.cpp
|
||||||
versioning.cpp
|
|
||||||
working.hpp)
|
working.hpp)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
|
|
|
||||||
|
|
@ -6,13 +6,17 @@ add_library(
|
||||||
lmdb/confirmation_height.hpp
|
lmdb/confirmation_height.hpp
|
||||||
lmdb/final_vote.hpp
|
lmdb/final_vote.hpp
|
||||||
lmdb/frontier.hpp
|
lmdb/frontier.hpp
|
||||||
|
lmdb/lmdb.hpp
|
||||||
|
lmdb/lmdb_env.hpp
|
||||||
lmdb/iterator.hpp
|
lmdb/iterator.hpp
|
||||||
|
lmdb/transaction_impl.hpp
|
||||||
lmdb/online_weight.hpp
|
lmdb/online_weight.hpp
|
||||||
lmdb/peer.hpp
|
lmdb/peer.hpp
|
||||||
lmdb/pending.hpp
|
lmdb/pending.hpp
|
||||||
lmdb/pruned.hpp
|
lmdb/pruned.hpp
|
||||||
lmdb/transaction_impl.hpp
|
lmdb/transaction_impl.hpp
|
||||||
lmdb/version.hpp
|
lmdb/version.hpp
|
||||||
|
lmdb/wallet_value.hpp
|
||||||
rocksdb/account.hpp
|
rocksdb/account.hpp
|
||||||
rocksdb/block.hpp
|
rocksdb/block.hpp
|
||||||
rocksdb/confirmation_height.hpp
|
rocksdb/confirmation_height.hpp
|
||||||
|
|
@ -23,10 +27,38 @@ add_library(
|
||||||
rocksdb/peer.hpp
|
rocksdb/peer.hpp
|
||||||
rocksdb/pending.hpp
|
rocksdb/pending.hpp
|
||||||
rocksdb/pruned.hpp
|
rocksdb/pruned.hpp
|
||||||
|
rocksdb/rocksdb.hpp
|
||||||
rocksdb/transaction_impl.hpp
|
rocksdb/transaction_impl.hpp
|
||||||
rocksdb/version.hpp
|
rocksdb/version.hpp
|
||||||
versioning.hpp
|
versioning.hpp
|
||||||
component.cpp)
|
component.cpp
|
||||||
|
lmdb/account.cpp
|
||||||
|
lmdb/block.cpp
|
||||||
|
lmdb/confirmation_height.cpp
|
||||||
|
lmdb/final_vote.cpp
|
||||||
|
lmdb/frontier.cpp
|
||||||
|
lmdb/lmdb.cpp
|
||||||
|
lmdb/lmdb_env.cpp
|
||||||
|
lmdb/transaction.cpp
|
||||||
|
lmdb/online_weight.cpp
|
||||||
|
lmdb/peer.cpp
|
||||||
|
lmdb/pending.cpp
|
||||||
|
lmdb/pruned.cpp
|
||||||
|
lmdb/version.cpp
|
||||||
|
lmdb/wallet_value.cpp
|
||||||
|
rocksdb/account.cpp
|
||||||
|
rocksdb/block.cpp
|
||||||
|
rocksdb/confirmation_height.cpp
|
||||||
|
rocksdb/final_vote.cpp
|
||||||
|
rocksdb/frontier.cpp
|
||||||
|
rocksdb/online_weight.cpp
|
||||||
|
rocksdb/peer.cpp
|
||||||
|
rocksdb/pending.cpp
|
||||||
|
rocksdb/pruned.cpp
|
||||||
|
rocksdb/rocksdb.cpp
|
||||||
|
rocksdb/transaction.cpp
|
||||||
|
rocksdb/version.cpp
|
||||||
|
versioning.cpp)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
nano_store
|
nano_store
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
#include <nano/lib/utility.hpp>
|
#include <nano/lib/utility.hpp>
|
||||||
#include <nano/node/common.hpp>
|
|
||||||
#include <nano/secure/buffer.hpp>
|
#include <nano/secure/buffer.hpp>
|
||||||
#include <nano/secure/ledger.hpp>
|
#include <nano/secure/ledger.hpp>
|
||||||
#include <nano/store/lmdb/lmdb.hpp>
|
#include <nano/store/lmdb/lmdb.hpp>
|
||||||
|
|
@ -4,20 +4,20 @@
|
||||||
#include <nano/lib/lmdbconfig.hpp>
|
#include <nano/lib/lmdbconfig.hpp>
|
||||||
#include <nano/lib/logger_mt.hpp>
|
#include <nano/lib/logger_mt.hpp>
|
||||||
#include <nano/lib/numbers.hpp>
|
#include <nano/lib/numbers.hpp>
|
||||||
|
#include <nano/secure/common.hpp>
|
||||||
#include <nano/store/lmdb/account.hpp>
|
#include <nano/store/lmdb/account.hpp>
|
||||||
#include <nano/store/lmdb/block.hpp>
|
#include <nano/store/lmdb/block.hpp>
|
||||||
#include <nano/store/lmdb/confirmation_height.hpp>
|
#include <nano/store/lmdb/confirmation_height.hpp>
|
||||||
#include <nano/store/lmdb/final_vote.hpp>
|
#include <nano/store/lmdb/final_vote.hpp>
|
||||||
#include <nano/store/lmdb/frontier.hpp>
|
#include <nano/store/lmdb/frontier.hpp>
|
||||||
#include <nano/store/lmdb/lmdb_env.hpp>
|
|
||||||
#include <nano/store/lmdb/iterator.hpp>
|
#include <nano/store/lmdb/iterator.hpp>
|
||||||
#include <nano/store/lmdb/transaction_impl.hpp>
|
#include <nano/store/lmdb/lmdb_env.hpp>
|
||||||
#include <nano/store/lmdb/online_weight.hpp>
|
#include <nano/store/lmdb/online_weight.hpp>
|
||||||
#include <nano/store/lmdb/peer.hpp>
|
#include <nano/store/lmdb/peer.hpp>
|
||||||
#include <nano/store/lmdb/pending.hpp>
|
#include <nano/store/lmdb/pending.hpp>
|
||||||
#include <nano/store/lmdb/pruned.hpp>
|
#include <nano/store/lmdb/pruned.hpp>
|
||||||
|
#include <nano/store/lmdb/transaction_impl.hpp>
|
||||||
#include <nano/store/lmdb/version.hpp>
|
#include <nano/store/lmdb/version.hpp>
|
||||||
#include <nano/secure/common.hpp>
|
|
||||||
#include <nano/store/versioning.hpp>
|
#include <nano/store/versioning.hpp>
|
||||||
|
|
||||||
#include <boost/optional.hpp>
|
#include <boost/optional.hpp>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <nano/lib/lmdbconfig.hpp>
|
#include <nano/lib/lmdbconfig.hpp>
|
||||||
#include <nano/store/lmdb/transaction_impl.hpp>
|
|
||||||
#include <nano/store/component.hpp>
|
#include <nano/store/component.hpp>
|
||||||
|
#include <nano/store/lmdb/transaction_impl.hpp>
|
||||||
|
|
||||||
namespace nano
|
namespace nano
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,18 +4,18 @@
|
||||||
#include <nano/lib/logger_mt.hpp>
|
#include <nano/lib/logger_mt.hpp>
|
||||||
#include <nano/lib/numbers.hpp>
|
#include <nano/lib/numbers.hpp>
|
||||||
#include <nano/lib/rocksdbconfig.hpp>
|
#include <nano/lib/rocksdbconfig.hpp>
|
||||||
|
#include <nano/secure/common.hpp>
|
||||||
#include <nano/store/rocksdb/account.hpp>
|
#include <nano/store/rocksdb/account.hpp>
|
||||||
#include <nano/store/rocksdb/block.hpp>
|
#include <nano/store/rocksdb/block.hpp>
|
||||||
#include <nano/store/rocksdb/confirmation_height.hpp>
|
#include <nano/store/rocksdb/confirmation_height.hpp>
|
||||||
#include <nano/store/rocksdb/final_vote.hpp>
|
#include <nano/store/rocksdb/final_vote.hpp>
|
||||||
#include <nano/store/rocksdb/frontier.hpp>
|
#include <nano/store/rocksdb/frontier.hpp>
|
||||||
|
#include <nano/store/rocksdb/iterator.hpp>
|
||||||
#include <nano/store/rocksdb/online_weight.hpp>
|
#include <nano/store/rocksdb/online_weight.hpp>
|
||||||
#include <nano/store/rocksdb/peer.hpp>
|
#include <nano/store/rocksdb/peer.hpp>
|
||||||
#include <nano/store/rocksdb/pending.hpp>
|
#include <nano/store/rocksdb/pending.hpp>
|
||||||
#include <nano/store/rocksdb/pruned.hpp>
|
#include <nano/store/rocksdb/pruned.hpp>
|
||||||
#include <nano/store/rocksdb/iterator.hpp>
|
|
||||||
#include <nano/store/rocksdb/version.hpp>
|
#include <nano/store/rocksdb/version.hpp>
|
||||||
#include <nano/secure/common.hpp>
|
|
||||||
|
|
||||||
#include <rocksdb/db.h>
|
#include <rocksdb/db.h>
|
||||||
#include <rocksdb/filter_policy.h>
|
#include <rocksdb/filter_policy.h>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue