reth_rpc/miner.rs
1use alloy_primitives::{Bytes, U128};
2use async_trait::async_trait;
3use jsonrpsee::core::RpcResult;
4use reth_rpc_api::MinerApiServer;
5
6/// `miner` API implementation.
7///
8/// This type provides the functionality for handling `miner` related requests.
9#[derive(Clone, Debug, Default)]
10pub struct MinerApi {}
11
12#[async_trait]
13impl MinerApiServer for MinerApi {
14 fn set_extra(&self, _record: Bytes) -> RpcResult<bool> {
15 Ok(false)
16 }
17
18 fn set_gas_price(&self, _gas_price: U128) -> RpcResult<bool> {
19 Ok(false)
20 }
21
22 fn set_gas_limit(&self, _gas_price: U128) -> RpcResult<bool> {
23 Ok(false)
24 }
25}