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 20, 2023
1 parent 1e323ea commit 0ae3a7d
Show file tree
Hide file tree
Showing 33 changed files with 40 additions and 37 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
34 changes: 33 additions & 1 deletion nano/store/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ add_library(
lmdb/confirmation_height.hpp
lmdb/final_vote.hpp
lmdb/frontier.hpp
lmdb/lmdb.hpp
lmdb/lmdb_env.hpp
lmdb/iterator.hpp
lmdb/transaction_impl.hpp
lmdb/online_weight.hpp
lmdb/peer.hpp
lmdb/pending.hpp
lmdb/pruned.hpp
lmdb/transaction_impl.hpp
lmdb/version.hpp
lmdb/wallet_value.hpp
rocksdb/account.hpp
rocksdb/block.hpp
rocksdb/confirmation_height.hpp
Expand All @@ -23,10 +27,38 @@ add_library(
rocksdb/peer.hpp
rocksdb/pending.hpp
rocksdb/pruned.hpp
rocksdb/rocksdb.hpp
rocksdb/transaction_impl.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/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(
nano_store
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion nano/node/lmdb/lmdb.cpp → nano/store/lmdb/lmdb.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <nano/lib/utility.hpp>
#include <nano/node/common.hpp>
#include <nano/secure/buffer.hpp>
#include <nano/secure/ledger.hpp>
#include <nano/store/lmdb/lmdb.hpp>
Expand Down
6 changes: 3 additions & 3 deletions nano/store/lmdb/lmdb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
#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>
#include <nano/store/lmdb/final_vote.hpp>
#include <nano/store/lmdb/frontier.hpp>
#include <nano/store/lmdb/lmdb_env.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/peer.hpp>
#include <nano/store/lmdb/pending.hpp>
#include <nano/store/lmdb/pruned.hpp>
#include <nano/store/lmdb/transaction_impl.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/transaction_impl.hpp>
#include <nano/store/component.hpp>
#include <nano/store/lmdb/transaction_impl.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.
4 changes: 2 additions & 2 deletions nano/store/rocksdb/rocksdb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
#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>
#include <nano/store/rocksdb/final_vote.hpp>
#include <nano/store/rocksdb/frontier.hpp>
#include <nano/store/rocksdb/iterator.hpp>
#include <nano/store/rocksdb/online_weight.hpp>
#include <nano/store/rocksdb/peer.hpp>
#include <nano/store/rocksdb/pending.hpp>
#include <nano/store/rocksdb/pruned.hpp>
#include <nano/store/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 0ae3a7d

Please sign in to comment.