Skip to main content

reth_rpc/
miner.rs

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