|
13 | 13 | #include <catch2/catch_test_macros.hpp> |
14 | 14 | #include <nlohmann/json.hpp> |
15 | 15 |
|
16 | | -#include <silkworm/db/chain/chain_storage.hpp> |
17 | | -#include <silkworm/db/kv/api/base_transaction.hpp> |
18 | 16 | #include <silkworm/db/kv/api/cursor.hpp> |
19 | 17 | #include <silkworm/db/kv/api/endpoint/paginated_sequence.hpp> |
20 | 18 | #include <silkworm/db/kv/api/endpoint/temporal_range.hpp> |
21 | | -#include <silkworm/db/kv/api/service.hpp> |
22 | 19 | #include <silkworm/db/kv/api/state_cache.hpp> |
| 20 | +#if !defined(__clang__) |
| 21 | +#include <silkworm/db/tables.hpp> |
| 22 | +#endif // !defined(__clang__) |
23 | 23 | #include <silkworm/db/test_util/mock_transaction.hpp> |
24 | 24 | #include <silkworm/infra/concurrency/shared_service.hpp> |
25 | 25 | #include <silkworm/rpc/core/filter_storage.hpp> |
@@ -152,15 +152,15 @@ TEST_CASE("get_modified_accounts") { |
152 | 152 | .from_timestamp = static_cast<db::kv::api::Timestamp>(0), |
153 | 153 | .to_timestamp = static_cast<db::kv::api::Timestamp>(19), |
154 | 154 | .ascending_order = true}; |
155 | | - EXPECT_CALL(transaction, history_range(std::move(request))).WillOnce(Invoke([=](Unused) -> Task<db::kv::api::PaginatedKeysValues> { |
| 155 | + EXPECT_CALL(transaction, history_range(std::move(request))).WillOnce(Invoke([=](Unused) -> Task<db::kv::api::KeyValueStreamReply> { |
156 | 156 | PaginatorKV paginator = [](auto next_page_token) -> Task<PageResultKV> { |
157 | 157 | co_return PageResultKV{ |
158 | 158 | .keys = {*from_hex("07aaec0b237ccf56b03a7c43c1c7a783da5606420501010101")}, |
159 | 159 | .values = {Bytes{}}, // encoded account value doesn't care |
160 | 160 | .next_page_token = std::move(next_page_token)}; |
161 | 161 | }; |
162 | 162 | db::kv::api::PaginatedKeysValues result{paginator}; |
163 | | - co_return result; |
| 163 | + co_return db::kv::api::KeyValueStreamReply{result}; |
164 | 164 | })); |
165 | 165 |
|
166 | 166 | auto result = boost::asio::co_spawn(pool, get_modified_accounts(tx, 0x52a010, 0x52a010, 0x800000), boost::asio::use_future); |
|
0 commit comments