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
3440a8a0
Commit
3440a8a0
authored
Jan 28, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed lost key
parent
957f80c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
chain_manager.go
core/chain_manager.go
+7
-1
genesis.go
core/genesis.go
+1
-1
No files found.
core/chain_manager.go
View file @
3440a8a0
...
...
@@ -251,7 +251,13 @@ func (self *ChainManager) GetBlockHashesFromHash(hash []byte, max uint64) (chain
// XXX Could be optimised by using a different database which only holds hashes (i.e., linked list)
for
i
:=
uint64
(
0
);
i
<
max
;
i
++
{
block
=
self
.
GetBlock
(
block
.
Header
()
.
ParentHash
)
parentHash
:=
block
.
Header
()
.
ParentHash
block
=
self
.
GetBlock
(
parentHash
)
if
block
==
nil
{
chainlogger
.
Infof
(
"GetBlockHashesFromHash Parent UNKNOWN %x
\n
"
,
parentHash
)
break
}
chain
=
append
(
chain
,
block
.
Hash
())
if
block
.
Header
()
.
Number
.
Cmp
(
ethutil
.
Big0
)
<=
0
{
break
...
...
core/genesis.go
View file @
3440a8a0
...
...
@@ -34,7 +34,7 @@ func GenesisBlock(db ethutil.Database) *types.Block {
statedb
:=
state
.
New
(
genesis
.
Root
(),
db
)
//statedb := state.New(genesis.Trie())
for
_
,
addr
:=
range
[]
string
{
"
51ba59315b3a95761d0863b05ccc7a7f54703d99
"
,
"
dbdbdb2cbd23b783741e8d7fcf51e459b497e4a6
"
,
"e4157b34ea9615cfbde6b4fda419828124b70c78"
,
"b9c015918bdaba24b4ff057a92a3873d6eb201be"
,
"6c386a4b26f73c802f34673f7248bb118f97424a"
,
...
...
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