diff --git a/rpc/core/src/eth.rs b/rpc/core/src/eth.rs index f600deabd..12bc8f08f 100644 --- a/rpc/core/src/eth.rs +++ b/rpc/core/src/eth.rs @@ -189,7 +189,7 @@ pub trait EthApi { /// Returns the hash of the current block, the seedHash, and the boundary condition to be met. #[rpc(name = "eth_getWork")] - fn work(&self, _: Option) -> Result; + fn work(&self) -> Result; /// Used for submitting a proof-of-work solution. #[rpc(name = "eth_submitWork")] diff --git a/rpc/src/lib.rs b/rpc/src/lib.rs index 835896a77..6856ba088 100644 --- a/rpc/src/lib.rs +++ b/rpc/src/lib.rs @@ -466,8 +466,13 @@ impl EthApiT for EthApi where unimplemented!("logs"); } - fn work(&self, _: Option) -> Result { - unimplemented!("work"); + fn work(&self) -> Result { + Ok(Work { + pow_hash: H256::default(), + seed_hash: H256::default(), + target: H256::default(), + number: None, + }) } fn submit_work(&self, _: H64, _: H256, _: H256) -> Result {