Skip to content

Commit

Permalink
Moving implementation in to nano::store
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Sep 19, 2023
1 parent f8c180f commit 9614e24
Show file tree
Hide file tree
Showing 33 changed files with 38 additions and 33 deletions.
29 changes: 1 addition & 28 deletions nano/node/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,6 @@ add_library(
json_handler.cpp
ledger_walker.hpp
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.cpp
make_store.hpp
Expand Down Expand Up @@ -156,18 +142,6 @@ add_library(
repcrawler.cpp
request_aggregator.hpp
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.hpp
scheduler/buckets.cpp
Expand Down Expand Up @@ -232,10 +206,10 @@ endif()

target_link_libraries(
node
nano_store
rpc
secure
nano_lib
nano_store
libminiupnpc-static
argon2
lmdb
Expand All @@ -262,6 +236,5 @@ add_dependencies(node ipc_flatbuffers_lib)

include_directories(${CMAKE_SOURCE_DIR}/submodules)
include_directories(${CMAKE_SOURCE_DIR}/submodules/cpptoml/include)
include_directories(${CMAKE_SOURCE_DIR}/submodules/lmdb)
include_directories(
${CMAKE_SOURCE_DIR}/submodules/nano-pow-server/deps/cpptoml/include)
1 change: 0 additions & 1 deletion nano/secure/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ add_library(
network_filter.cpp
utility.hpp
utility.cpp
versioning.cpp
working.hpp)

target_link_libraries(
Expand Down
35 changes: 34 additions & 1 deletion nano/store/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ add_library(
lmdb/confirmation_height.hpp
lmdb/final_vote.hpp
lmdb/frontier.hpp
lmdb/lmdb.hpp
lmdb/lmdb_env.hpp
lmdb/lmdb_txn.hpp
lmdb/online_weight.hpp
lmdb/peer.hpp
lmdb/pending.hpp
lmdb/pruned.hpp
lmdb/version.hpp
lmdb/wallet_value.hpp
rocksdb/account.hpp
rocksdb/block.hpp
rocksdb/confirmation_height.hpp
Expand All @@ -20,9 +24,38 @@ add_library(
rocksdb/peer.hpp
rocksdb/pending.hpp
rocksdb/pruned.hpp
rocksdb/rocksdb.hpp
rocksdb/rocksdb_txn.hpp
rocksdb/version.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/lmdb_txn.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/rocksdb_txn.cpp
rocksdb/version.cpp
versioning.cpp)

target_link_libraries(
nano_store
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion nano/store/lmdb/lmdb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <nano/lib/lmdbconfig.hpp>
#include <nano/lib/logger_mt.hpp>
#include <nano/lib/numbers.hpp>
#include <nano/secure/common.hpp>
#include <nano/store/lmdb/account.hpp>
#include <nano/store/lmdb/block.hpp>
#include <nano/store/lmdb/confirmation_height.hpp>
Expand All @@ -17,7 +18,6 @@
#include <nano/store/lmdb/pending.hpp>
#include <nano/store/lmdb/pruned.hpp>
#include <nano/store/lmdb/version.hpp>
#include <nano/secure/common.hpp>
#include <nano/store/versioning.hpp>

#include <boost/optional.hpp>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion nano/store/lmdb/lmdb_env.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include <nano/lib/lmdbconfig.hpp>
#include <nano/store/lmdb/lmdb_txn.hpp>
#include <nano/store/component.hpp>
#include <nano/store/lmdb/lmdb_txn.hpp>

namespace nano
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion nano/store/rocksdb/rocksdb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <nano/lib/logger_mt.hpp>
#include <nano/lib/numbers.hpp>
#include <nano/lib/rocksdbconfig.hpp>
#include <nano/secure/common.hpp>
#include <nano/store/rocksdb/account.hpp>
#include <nano/store/rocksdb/block.hpp>
#include <nano/store/rocksdb/confirmation_height.hpp>
Expand All @@ -15,7 +16,6 @@
#include <nano/store/rocksdb/pruned.hpp>
#include <nano/store/rocksdb/rocksdb_iterator.hpp>
#include <nano/store/rocksdb/version.hpp>
#include <nano/secure/common.hpp>

#include <rocksdb/db.h>
#include <rocksdb/filter_policy.h>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9614e24

Please sign in to comment.