fix: make everything compile again

This commit is contained in:
Matthias Seitz
2022-10-03 15:36:13 +02:00
parent 9251b286d0
commit 14d0b6ac4e
4 changed files with 9 additions and 11 deletions

View File

@ -22,6 +22,6 @@ pub trait DebugApi {
async fn raw_receipts(&self, block_id: BlockId) -> Result<Vec<Bytes>>; async fn raw_receipts(&self, block_id: BlockId) -> Result<Vec<Bytes>>;
/// Returns an array of recent bad blocks that the client has seen on the network. /// Returns an array of recent bad blocks that the client has seen on the network.
#[method(name = "debug_getRawReceipts")] #[method(name = "debug_getBadBlocks")]
async fn bad_blocks(&self) -> Result<Vec<RichBlock>>; async fn bad_blocks(&self) -> Result<Vec<RichBlock>>;
} }

View File

@ -1,14 +1,11 @@
use jsonrpsee::{core::RpcResult as Result, proc_macros::rpc}; use jsonrpsee::{core::RpcResult as Result, proc_macros::rpc};
use reth_primitives::{BlockId, Bytes, H256, H64}; use reth_primitives::H64;
use reth_rpc_types::{ use reth_rpc_types::engine::{
engine::{ ExecutionPayload, ForkchoiceState, ForkchoiceUpdated, PayloadAttributes, PayloadStatus,
ExecutionPayload, ForkchoiceState, ForkchoiceUpdated, PayloadAttributes, PayloadStatus, TransitionConfiguration,
TransitionConfiguration,
},
RichBlock,
}; };
#[rpc(client)] #[rpc(server)]
pub trait EngineApi { pub trait EngineApi {
/// See also <https://github.com/ethereum/execution-apis/blob/8db51dcd2f4bdfbd9ad6e4a7560aac97010ad063/src/engine/specification.md#engine_newpayloadv1> /// See also <https://github.com/ethereum/execution-apis/blob/8db51dcd2f4bdfbd9ad6e4a7560aac97010ad063/src/engine/specification.md#engine_newpayloadv1>
#[method(name = "engine_newPayloadV1")] #[method(name = "engine_newPayloadV1")]

View File

@ -3,8 +3,8 @@ use jsonrpsee::{
proc_macros::rpc, proc_macros::rpc,
}; };
use reth_primitives::{ use reth_primitives::{
transaction, transaction::eip2930::AccessListWithGasUsed, Address, BlockId, BlockNumber, Bytes, transaction::eip2930::AccessListWithGasUsed, Address, BlockId, BlockNumber, Bytes, H256, H64,
H256, H64, U256, U64, U256, U64,
}; };
use reth_rpc_types::{ use reth_rpc_types::{
CallRequest, EIP1186AccountProofResponse, FeeHistory, Index, RichBlock, SyncStatus, CallRequest, EIP1186AccountProofResponse, FeeHistory, Index, RichBlock, SyncStatus,

View File

@ -2,6 +2,7 @@
//! Engine API types: <https://github.com/ethereum/execution-apis/blob/main/src/engine/authentication.md> //! Engine API types: <https://github.com/ethereum/execution-apis/blob/main/src/engine/authentication.md>
use reth_primitives::{Address, BlockNumber, Bloom, Bytes, H256, H64, U256, U64}; use reth_primitives::{Address, BlockNumber, Bloom, Bytes, H256, H64, U256, U64};
use serde::{Deserialize, Serialize};
/// This structure maps on the ExecutionPayload structure of the beacon chain spec. /// This structure maps on the ExecutionPayload structure of the beacon chain spec.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]