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
30842eb8
Commit
30842eb8
authored
May 19, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed logging
parent
43f88b2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
cmd.go
utils/cmd.go
+3
-4
No files found.
utils/cmd.go
View file @
30842eb8
...
...
@@ -6,7 +6,6 @@ import (
"github.com/ethereum/eth-go/ethpub"
"github.com/ethereum/eth-go/ethrpc"
"github.com/ethereum/eth-go/ethutil"
"log"
"time"
)
...
...
@@ -14,7 +13,7 @@ func DoRpc(ethereum *eth.Ethereum, RpcPort int) {
var
err
error
ethereum
.
RpcServer
,
err
=
ethrpc
.
NewJsonRpcServer
(
ethpub
.
NewPEthereum
(
ethereum
),
RpcPort
)
if
err
!=
nil
{
log
.
Print
ln
(
"Could not start RPC interface:"
,
err
)
ethutil
.
Config
.
Log
.
Info
ln
(
"Could not start RPC interface:"
,
err
)
}
else
{
go
ethereum
.
RpcServer
.
Start
()
}
...
...
@@ -25,7 +24,7 @@ func DoMining(ethereum *eth.Ethereum) {
ethereum
.
Mining
=
true
if
ethutil
.
GetKeyRing
()
.
Len
()
==
0
{
log
.
Print
ln
(
"No address found, can't start mining"
)
ethutil
.
Config
.
Log
.
Info
ln
(
"No address found, can't start mining"
)
return
}
keyPair
:=
ethutil
.
GetKeyRing
()
.
Get
(
0
)
...
...
@@ -40,7 +39,7 @@ func DoMining(ethereum *eth.Ethereum) {
time.Sleep(5 * time.Second)
}
*/
log
.
Print
ln
(
"Miner started"
)
ethutil
.
Config
.
Log
.
Info
ln
(
"Miner started"
)
miner
:=
ethminer
.
NewDefaultMiner
(
addr
,
ethereum
)
miner
.
Start
()
...
...
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