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
f7fb5b90
Commit
f7fb5b90
authored
Mar 05, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Conform to the new server model
parent
82750598
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dev_console.go
dev_console.go
+4
-4
No files found.
dev_console.go
View file @
f7fb5b90
...
@@ -158,11 +158,11 @@ func (i *Console) ParseInput(input string) bool {
...
@@ -158,11 +158,11 @@ func (i *Console) ParseInput(input string) bool {
fmt
.
Println
(
value
)
fmt
.
Println
(
value
)
case
"getaddr"
:
case
"getaddr"
:
encoded
,
_
:=
hex
.
DecodeString
(
tokens
[
1
])
encoded
,
_
:=
hex
.
DecodeString
(
tokens
[
1
])
addr
:=
i
.
ethereum
.
Block
Manager
.
Block
Chain
()
.
CurrentBlock
.
State
()
.
GetAccount
(
encoded
)
addr
:=
i
.
ethereum
.
BlockChain
()
.
CurrentBlock
.
State
()
.
GetAccount
(
encoded
)
fmt
.
Println
(
"addr:"
,
addr
)
fmt
.
Println
(
"addr:"
,
addr
)
case
"block"
:
case
"block"
:
encoded
,
_
:=
hex
.
DecodeString
(
tokens
[
1
])
encoded
,
_
:=
hex
.
DecodeString
(
tokens
[
1
])
block
:=
i
.
ethereum
.
Block
Manager
.
Block
Chain
()
.
GetBlock
(
encoded
)
block
:=
i
.
ethereum
.
BlockChain
()
.
GetBlock
(
encoded
)
info
:=
block
.
BlockInfo
()
info
:=
block
.
BlockInfo
()
fmt
.
Printf
(
"++++++++++ #%d ++++++++++
\n
%v
\n
"
,
info
.
Number
,
block
)
fmt
.
Printf
(
"++++++++++ #%d ++++++++++
\n
%v
\n
"
,
info
.
Number
,
block
)
case
"say"
:
case
"say"
:
...
@@ -182,7 +182,7 @@ func (i *Console) ParseInput(input string) bool {
...
@@ -182,7 +182,7 @@ func (i *Console) ParseInput(input string) bool {
key
:=
ethutil
.
Config
.
Db
.
GetKeys
()[
0
]
key
:=
ethutil
.
Config
.
Db
.
GetKeys
()[
0
]
tx
.
Sign
(
key
.
PrivateKey
)
tx
.
Sign
(
key
.
PrivateKey
)
i
.
ethereum
.
TxPool
.
QueueTransaction
(
tx
)
i
.
ethereum
.
TxPool
()
.
QueueTransaction
(
tx
)
fmt
.
Printf
(
"%x
\n
"
,
tx
.
Hash
())
fmt
.
Printf
(
"%x
\n
"
,
tx
.
Hash
())
}
}
...
@@ -204,7 +204,7 @@ func (i *Console) ParseInput(input string) bool {
...
@@ -204,7 +204,7 @@ func (i *Console) ParseInput(input string) bool {
key
:=
ethutil
.
Config
.
Db
.
GetKeys
()[
0
]
key
:=
ethutil
.
Config
.
Db
.
GetKeys
()[
0
]
contract
.
Sign
(
key
.
PrivateKey
)
contract
.
Sign
(
key
.
PrivateKey
)
i
.
ethereum
.
TxPool
.
QueueTransaction
(
contract
)
i
.
ethereum
.
TxPool
()
.
QueueTransaction
(
contract
)
fmt
.
Printf
(
"%x
\n
"
,
contract
.
Hash
()[
12
:
])
fmt
.
Printf
(
"%x
\n
"
,
contract
.
Hash
()[
12
:
])
case
"exit"
,
"quit"
,
"q"
:
case
"exit"
,
"quit"
,
"q"
:
...
...
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