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
d753eb77
Commit
d753eb77
authored
Jan 25, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the last block of the block chain
Added CurrentBlock to block manager
parent
42e8930b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+1
-1
dev_console.go
dev_console.go
+1
-1
ethereum.go
ethereum.go
+1
-1
No files found.
README.md
View file @
d753eb77
...
@@ -3,7 +3,7 @@ Ethereum
...
@@ -3,7 +3,7 @@ Ethereum
[

](https://travis-ci.org/ethereum/go-ethereum)
[

](https://travis-ci.org/ethereum/go-ethereum)
Ethereum Go (c)
[
0255c7881
](
https://github.com/ethereum/go-ethereum#copy
)
Ethereum Go
developer client
(c)
[
0255c7881
](
https://github.com/ethereum/go-ethereum#copy
)
A fair warning; Ethereum is not yet to be used in production. There's no
A fair warning; Ethereum is not yet to be used in production. There's no
test-net and you aren't mining real blocks (just one which is the genesis block).
test-net and you aren't mining real blocks (just one which is the genesis block).
...
...
dev_console.go
View file @
d753eb77
...
@@ -122,7 +122,7 @@ func (i *Console) ParseInput(input string) bool {
...
@@ -122,7 +122,7 @@ func (i *Console) ParseInput(input string) bool {
fmt
.
Printf
(
"%q
\n
"
,
d
)
fmt
.
Printf
(
"%q
\n
"
,
d
)
case
"getaddr"
:
case
"getaddr"
:
encoded
,
_
:=
hex
.
DecodeString
(
tokens
[
1
])
encoded
,
_
:=
hex
.
DecodeString
(
tokens
[
1
])
d
:=
i
.
ethereum
.
BlockManager
.
BlockChain
()
.
Las
tBlock
.
State
()
.
Get
(
string
(
encoded
))
d
:=
i
.
ethereum
.
BlockManager
.
Curren
tBlock
.
State
()
.
Get
(
string
(
encoded
))
if
d
!=
""
{
if
d
!=
""
{
decoder
:=
ethutil
.
NewRlpDecoder
([]
byte
(
d
))
decoder
:=
ethutil
.
NewRlpDecoder
([]
byte
(
d
))
fmt
.
Println
(
decoder
)
fmt
.
Println
(
decoder
)
...
...
ethereum.go
View file @
d753eb77
...
@@ -95,7 +95,7 @@ func main() {
...
@@ -95,7 +95,7 @@ func main() {
time
.
Sleep
(
blockTime
*
time
.
Second
)
time
.
Sleep
(
blockTime
*
time
.
Second
)
block
:=
ethchain
.
CreateBlock
(
block
:=
ethchain
.
CreateBlock
(
ethereum
.
BlockManager
.
BlockChain
()
.
Las
tBlock
.
State
()
.
Root
,
ethereum
.
BlockManager
.
Curren
tBlock
.
State
()
.
Root
,
ethereum
.
BlockManager
.
LastBlockHash
,
ethereum
.
BlockManager
.
LastBlockHash
,
"123"
,
"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