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
f56a5959
Commit
f56a5959
authored
Feb 02, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted back to old messages
parent
20671758
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
12 deletions
+2
-12
dev_console.go
dev_console.go
+1
-1
ethereum.go
ethereum.go
+1
-11
No files found.
dev_console.go
View file @
f56a5959
...
...
@@ -136,7 +136,7 @@ func (i *Console) ParseInput(input string) bool {
fmt
.
Println
(
"getaddr: address unknown"
)
}
case
"say"
:
i
.
ethereum
.
Broadcast
(
ethwire
.
MsgTalkTy
,
tokens
[
1
]
)
i
.
ethereum
.
Broadcast
(
ethwire
.
MsgTalkTy
,
[]
interface
{}{
tokens
[
1
]}
)
case
"addp"
:
i
.
ethereum
.
ConnectToPeer
(
tokens
[
1
])
case
"pcount"
:
...
...
ethereum.go
View file @
f56a5959
...
...
@@ -11,7 +11,6 @@ import (
"log"
"os"
"os/signal"
"path"
"runtime"
"time"
)
...
...
@@ -65,18 +64,9 @@ func main() {
err
:=
os
.
Mkdir
(
ethutil
.
Config
.
ExecPath
,
os
.
ModePerm
)
// Error is OK if the error is ErrExist
if
err
!=
nil
&&
!
os
.
IsExist
(
err
)
{
log
.
Panic
(
"Unable to create EXECPATH
. Exiting"
)
log
.
Panic
(
"Unable to create EXECPATH
:"
,
err
)
}
// TODO The logger will eventually be a non blocking logger. Logging is a expensive task
// Log to file only
file
,
err
:=
os
.
OpenFile
(
path
.
Join
(
ethutil
.
Config
.
ExecPath
,
"debug.log"
),
os
.
O_RDWR
|
os
.
O_CREATE
,
os
.
ModePerm
)
if
err
!=
nil
{
log
.
Panic
(
"Unable to set proper logger"
,
err
)
}
ethutil
.
Config
.
Log
=
log
.
New
(
file
,
""
,
0
)
console
:=
NewConsole
(
ethereum
)
go
console
.
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