Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
89a32267
Unverified
Commit
89a32267
authored
Dec 23, 2016
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth: fix miner start API to accept int, not hexint
parent
115364b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
api.go
eth/api.go
+2
-2
No files found.
eth/api.go
View file @
89a32267
...
@@ -138,13 +138,13 @@ func NewPrivateMinerAPI(e *Ethereum) *PrivateMinerAPI {
...
@@ -138,13 +138,13 @@ func NewPrivateMinerAPI(e *Ethereum) *PrivateMinerAPI {
// Start the miner with the given number of threads. If threads is nil the number of
// Start the miner with the given number of threads. If threads is nil the number of
// workers started is equal to the number of logical CPU's that are usable by this process.
// workers started is equal to the number of logical CPU's that are usable by this process.
func
(
s
*
PrivateMinerAPI
)
Start
(
threads
*
hexutil
.
U
int
)
(
bool
,
error
)
{
func
(
s
*
PrivateMinerAPI
)
Start
(
threads
*
int
)
(
bool
,
error
)
{
s
.
e
.
StartAutoDAG
()
s
.
e
.
StartAutoDAG
()
var
err
error
var
err
error
if
threads
==
nil
{
if
threads
==
nil
{
err
=
s
.
e
.
StartMining
(
runtime
.
NumCPU
())
err
=
s
.
e
.
StartMining
(
runtime
.
NumCPU
())
}
else
{
}
else
{
err
=
s
.
e
.
StartMining
(
int
(
*
threads
)
)
err
=
s
.
e
.
StartMining
(
*
threads
)
}
}
return
err
==
nil
,
err
return
err
==
nil
,
err
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment