Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parity-test-sync
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
parity-test-sync
Commits
cd6a09c0
Commit
cd6a09c0
authored
8 years ago
by
Gav Wood
Browse files
Options
Downloads
Plain Diff
Merge pull request #846 from ethcore/fixmining
Fix response for mining.
parents
c20ca0fa
6a7c25e2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rpc/src/v1/impls/eth.rs
+2
-2
2 additions, 2 deletions
rpc/src/v1/impls/eth.rs
with
2 additions
and
2 deletions
rpc/src/v1/impls/eth.rs
+
2
−
2
View file @
cd6a09c0
...
@@ -428,8 +428,8 @@ impl<C, S, A, M, EM> Eth for EthClient<C, S, A, M, EM>
...
@@ -428,8 +428,8 @@ impl<C, S, A, M, EM> Eth for EthClient<C, S, A, M, EM>
miner
.map_sealing_work
(
client
.deref
(),
|
b
|
{
miner
.map_sealing_work
(
client
.deref
(),
|
b
|
{
let
pow_hash
=
b
.hash
();
let
pow_hash
=
b
.hash
();
let
target
=
Ethash
::
difficulty_to_boundary
(
b
.block
()
.header
()
.difficulty
());
let
target
=
Ethash
::
difficulty_to_boundary
(
b
.block
()
.header
()
.difficulty
());
let
seed_hash
=
self
.seed_compute
.lock
()
.unwrap
()
.get_seedhash
(
b
.block
()
.header
()
.number
());
let
seed_hash
=
&
self
.seed_compute
.lock
()
.unwrap
()
.get_seedhash
(
b
.block
()
.header
()
.number
());
to_value
(
&
(
pow_hash
,
seed_hash
,
target
))
to_value
(
&
(
pow_hash
,
H256
::
from_slice
(
&
seed_hash
[
..
])
,
target
))
})
.unwrap_or
(
Err
(
Error
::
internal_error
()))
// no work found.
})
.unwrap_or
(
Err
(
Error
::
internal_error
()))
// no work found.
},
},
_
=>
Err
(
Error
::
invalid_params
())
_
=>
Err
(
Error
::
invalid_params
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment