Skip to content

Commit

Permalink
node: move KV API client/server to db (#2089)
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat authored Jun 11, 2024
1 parent 11195c2 commit 30d4252
Show file tree
Hide file tree
Showing 39 changed files with 15 additions and 18 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <catch2/catch.hpp>

#include <silkworm/node/test_util/fixture.hpp>
#include <silkworm/infra/test_util/fixture.hpp>

#include "../../test_util/sample_protos.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <catch2/catch.hpp>

#include <silkworm/node/test_util/fixture.hpp>
#include <silkworm/infra/test_util/fixture.hpp>

#include "../../test_util/sample_protos.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
#include <silkworm/infra/test_util/log.hpp>
#include <silkworm/interfaces/remote/kv.pb.h>
#include <silkworm/interfaces/types/types.pb.h>
#include <silkworm/node/remote/kv/grpc/server/kv_calls.hpp>
#include <silkworm/node/remote/kv/grpc/server/state_change_collection.hpp>

#include "kv_calls.hpp"
#include "state_change_collection.hpp"

using namespace std::chrono_literals;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion silkworm/node/backend/ethereum_backend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

#include <silkworm/core/chain/config.hpp>
#include <silkworm/core/common/base.hpp>
#include <silkworm/db/remote/kv/grpc/server/state_change_collection.hpp>
#include <silkworm/node/common/node_settings.hpp>
#include <silkworm/node/remote/kv/grpc/server/state_change_collection.hpp>
#include <silkworm/sentry/api/common/sentry_client.hpp>

namespace silkworm {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <intx/intx.hpp>

#include <silkworm/infra/grpc/common/conversion.hpp>
#include <silkworm/infra/test_util/fixture.hpp>
#include <silkworm/interfaces/execution/execution.pb.h>
#include <silkworm/node/test_util/fixture.hpp>

#include "../../test_util/sample_protos.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include <intx/intx.hpp>

#include <silkworm/infra/grpc/common/conversion.hpp>
#include <silkworm/infra/test_util/fixture.hpp>
#include <silkworm/interfaces/execution/execution.pb.h>
#include <silkworm/node/test_util/fixture.hpp>
#include <silkworm/node/test_util/sample_blocks.hpp>

#include "../../test_util/sample_protos.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#include <catch2/catch.hpp>
#include <intx/intx.hpp>

#include <silkworm/infra/test_util/fixture.hpp>
#include <silkworm/interfaces/execution/execution.pb.h>
#include <silkworm/node/test_util/fixture.hpp>
#include <silkworm/node/test_util/sample_blocks.hpp>

#include "../../test_util/sample_protos.hpp"
Expand Down
3 changes: 1 addition & 2 deletions silkworm/node/execution/grpc/common/block_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@

#include <catch2/catch.hpp>

#include <silkworm/core/common/bytes_to_string.hpp>
#include <silkworm/node/test_util/fixture.hpp>
#include <silkworm/infra/test_util/fixture.hpp>
#include <silkworm/node/test_util/sample_blocks.hpp>

#include "../test_util/sample_protos.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <intx/intx.hpp>

#include <silkworm/infra/grpc/common/conversion.hpp>
#include <silkworm/infra/test_util/fixture.hpp>
#include <silkworm/interfaces/execution/execution.pb.h>
#include <silkworm/node/test_util/fixture.hpp>

#include "../../test_util/sample_protos.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include <intx/intx.hpp>

#include <silkworm/infra/grpc/common/conversion.hpp>
#include <silkworm/infra/test_util/fixture.hpp>
#include <silkworm/interfaces/execution/execution.pb.h>
#include <silkworm/node/test_util/fixture.hpp>
#include <silkworm/node/test_util/sample_blocks.hpp>

#include "../../test_util/sample_protos.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#include <catch2/catch.hpp>
#include <intx/intx.hpp>

#include <silkworm/infra/test_util/fixture.hpp>
#include <silkworm/interfaces/execution/execution.pb.h>
#include <silkworm/node/test_util/fixture.hpp>
#include <silkworm/node/test_util/sample_blocks.hpp>

#include "../../test_util/sample_protos.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@

#include "backend_kv_server.hpp"

#include <silkworm/infra/concurrency/task.hpp>

#include <silkworm/infra/common/log.hpp>
#include <silkworm/db/remote/kv/grpc/server/kv_calls.hpp>
#include <silkworm/node/remote/ethbackend/grpc/server/backend_calls.hpp>
#include <silkworm/node/remote/kv/grpc/server/kv_calls.hpp>

namespace silkworm::rpc {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
#pragma once

#include <silkworm/core/chain/config.hpp>
#include <silkworm/db/remote/kv/grpc/server/kv_server.hpp>
#include <silkworm/node/backend/ethereum_backend.hpp>
#include <silkworm/node/remote/ethbackend/grpc/server/backend_server.hpp>
#include <silkworm/node/remote/kv/grpc/server/kv_server.hpp>

namespace silkworm::rpc {

Expand Down

0 comments on commit 30d4252

Please sign in to comment.