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
6ab368cf
Commit
6ab368cf
authored
Jan 28, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed block chain specific methods
parent
26196045
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
dev_console.go
dev_console.go
+1
-1
ethereum.go
ethereum.go
+3
-3
No files found.
dev_console.go
View file @
6ab368cf
...
...
@@ -128,7 +128,7 @@ func (i *Console) ParseInput(input string) bool {
fmt
.
Printf
(
"%q
\n
"
,
d
)
case
"getaddr"
:
encoded
,
_
:=
hex
.
DecodeString
(
tokens
[
1
])
d
:=
i
.
ethereum
.
BlockManager
.
CurrentBlock
.
State
()
.
Get
(
string
(
encoded
))
d
:=
i
.
ethereum
.
BlockManager
.
BlockChain
()
.
CurrentBlock
.
State
()
.
Get
(
string
(
encoded
))
if
d
!=
""
{
decoder
:=
ethutil
.
NewRlpDecoder
([]
byte
(
d
))
fmt
.
Println
(
decoder
)
...
...
ethereum.go
View file @
6ab368cf
...
...
@@ -84,7 +84,7 @@ func main() {
ethereum
.
Start
()
if
StartMining
{
blockTime
:=
time
.
Duration
(
15
)
blockTime
:=
time
.
Duration
(
2
)
log
.
Printf
(
"Dev Test Mining started. Blocks found each %d seconds
\n
"
,
blockTime
)
// Fake block mining. It broadcasts a new block every 5 seconds
...
...
@@ -96,8 +96,8 @@ func main() {
txs
:=
ethereum
.
TxPool
.
Flush
()
block
:=
ethchain
.
CreateBlock
(
ethereum
.
BlockManager
.
CurrentBlock
.
State
()
.
Root
,
ethereum
.
BlockManager
.
LastBlockHash
,
ethereum
.
BlockManager
.
BlockChain
()
.
CurrentBlock
.
State
()
.
Root
,
ethereum
.
BlockManager
.
BlockChain
()
.
LastBlockHash
,
"123"
,
big
.
NewInt
(
1
),
big
.
NewInt
(
1
),
...
...
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