Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-implement JSON-RPC server using the
jsonrpsee
framework (ethereu…
…m#508) * Add new `rpc` workspace member * ethportal-api: Fix server feature rpc macro for trait apis * rpc: Setup rpc endpoints template * rpc: Rename server API implementations * rpc: Add network handlers for server API implementations * Extract `launch_jsonrpc_server` outside trin_core two fix two-way dependency issue with the rpc crate. * trin-core: Remove depreciated http json-rpc code * trin-history: Change history endpoint interface * ethportal-api: Implement From<HistoryContentItem> for Vec<u8> * rpc: Add proxy method in HistoryNetworkApi to query history network jsonrpc * trin-core: Fix locks comparison error * rpc: Replace trin json-rpc IPC interface with reth-ipc and remove depreciated code * trin-core: Depreciate `JsonRpcHandler` * trin-state: Remove support for state network json-rpc endpoints * trin-state: Remove depreciated json-rpc eth mod * trin-state: Remove depreciated json-rpc param types * rpc: Finish server APIs implementations * peertest: Refactor paginate test * ethportal-api: Add enum variants for unknown content keys and values * peertest: Remove state network json-rpc tests * peertest: Fix recursive_find_content_invalid_params test * peertest: Disable `eth` endpoint tests * trin-history: Return distance in `traceRecursiveFindContent` endpoint as hex string * trin-history: Fix `SendOffer` rpc response and update offer/accept peertest test * ethportal-api: Update BitList type * ethportal-api: Set `RoutingTableInfo` type as json Value * rpc: Implement `discv5_routingTableInfo` endpoint * peertest: Remove `historyStore` endpoint test with invalid content because the json-rpc server returns json error when invalid content is provided. * trin-history: Handle errors when converting between trin and ethportal-api content keys * ethportal-api: Update unknown history content key type to bytes * trin-history: Fix `historyPing` endpoint response and peertest test * ethportal-api: Update FindNodes response type * rpc: Update FindNodes response * ethportal-api: Add `historyRadius` endpoint * trin-core: Fix accumulator tests * circleci: Build whole workspace in utp testing pipeline, This prevents dependency discrepancies with main Cargo.toml file * Set explicitly `reth-ipc` version * Add newsfagment file * ethportal-api: Change OverlayContentKey bytes() method to return vector instead of array * Fix rebase conflict * Add `rpc` crate to Dockerfile * Address PR comments * Fix rebase conflict * Address PR comments 2 * Fix rebase conflicts
- Loading branch information