reth_rpc/
miner.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use alloy_primitives::{Bytes, U128};
use async_trait::async_trait;
use jsonrpsee::core::RpcResult;
use reth_rpc_api::MinerApiServer;

/// `miner` API implementation.
///
/// This type provides the functionality for handling `miner` related requests.
#[derive(Clone, Debug, Default)]
pub struct MinerApi {}

#[async_trait]
impl MinerApiServer for MinerApi {
    fn set_extra(&self, _record: Bytes) -> RpcResult<bool> {
        Ok(false)
    }

    fn set_gas_price(&self, _gas_price: U128) -> RpcResult<bool> {
        Ok(false)
    }

    fn set_gas_limit(&self, _gas_price: U128) -> RpcResult<bool> {
        Ok(false)
    }
}