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
525cefa3
Commit
525cefa3
authored
Apr 18, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated ethash
parent
c39a7b5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Godeps.json
Godeps/Godeps.json
+2
-2
ethash.go
Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go
+2
-2
No files found.
Godeps/Godeps.json
View file @
525cefa3
...
...
@@ -22,8 +22,8 @@
},
{
"ImportPath"
:
"github.com/ethereum/ethash"
,
"Comment"
:
"v23.1-8
1-g4039fd0
"
,
"Rev"
:
"
4039fd095084679fb0bf3feae91d02506b5d67aa
"
"Comment"
:
"v23.1-8
2-g908aad3
"
,
"Rev"
:
"
908aad345c9fbf3ab9bbb94031dc02d0d90df1b8
"
},
{
"ImportPath"
:
"github.com/ethereum/serpent-go"
,
...
...
Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go
View file @
525cefa3
...
...
@@ -91,7 +91,7 @@ func makeParamsAndCache(chainManager pow.ChainManager, blockNum uint64) (*Params
return
nil
,
err
}
glog
.
V
(
logger
.
Info
)
.
Info
ln
(
"Making cache"
)
glog
.
V
(
logger
.
Info
)
.
Info
f
(
"Making cache for epoch: %d (%v) (%x)
\n
"
,
paramsAndCache
.
Epoch
,
blockNum
,
seedHash
)
start
:=
time
.
Now
()
C
.
ethash_mkcache
(
paramsAndCache
.
cache
,
paramsAndCache
.
params
,
(
*
C
.
ethash_blockhash_t
)(
unsafe
.
Pointer
(
&
seedHash
[
0
])))
...
...
@@ -387,7 +387,7 @@ func (pow *Ethash) verify(hash common.Hash, mixDigest common.Hash, difficulty *b
if
blockNum
/
epochLength
<
pow
.
paramsAndCache
.
Epoch
{
var
err
error
// If we can't make the params for some reason, this block is invalid
pAc
,
err
=
makeParamsAndCache
(
pow
.
chainManager
,
blockNum
+
1
)
pAc
,
err
=
makeParamsAndCache
(
pow
.
chainManager
,
blockNum
)
if
err
!=
nil
{
glog
.
V
(
logger
.
Info
)
.
Infoln
(
"big fucking eror"
,
err
)
return
false
...
...
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