From 6a7c25e2be0559f4e4b5825fc1951000e2fe836d Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Mon, 28 Mar 2016 11:23:22 +0200 Subject: [PATCH] Fix response for mining. --- rpc/src/v1/impls/eth.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/src/v1/impls/eth.rs b/rpc/src/v1/impls/eth.rs index 98b28d70f..141593451 100644 --- a/rpc/src/v1/impls/eth.rs +++ b/rpc/src/v1/impls/eth.rs @@ -428,8 +428,8 @@ impl Eth for EthClient miner.map_sealing_work(client.deref(), |b| { let pow_hash = b.hash(); let target = Ethash::difficulty_to_boundary(b.block().header().difficulty()); - let seed_hash = self.seed_compute.lock().unwrap().get_seedhash(b.block().header().number()); - to_value(&(pow_hash, seed_hash, target)) + let seed_hash = &self.seed_compute.lock().unwrap().get_seedhash(b.block().header().number()); + to_value(&(pow_hash, H256::from_slice(&seed_hash[..]), target)) }).unwrap_or(Err(Error::internal_error())) // no work found. }, _ => Err(Error::invalid_params())