good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
525cefa3
Commit
525cefa3
authored
Apr 18, 2015
by
Jeffrey Wilcke
Browse files
Options
Downloads
Patches
Plain Diff
updated ethash
parent
c39a7b5c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Godeps/Godeps.json
+2
-2
2 additions, 2 deletions
Godeps/Godeps.json
Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go
+2
-2
2 additions, 2 deletions
Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go
with
4 additions
and
4 deletions
Godeps/Godeps.json
+
2
−
2
View file @
525cefa3
...
@@ -22,8 +22,8 @@
...
@@ -22,8 +22,8 @@
},
},
{
{
"ImportPath"
:
"github.com/ethereum/ethash"
,
"ImportPath"
:
"github.com/ethereum/ethash"
,
"Comment"
:
"v23.1-8
1
-g
4039fd0
"
,
"Comment"
:
"v23.1-8
2
-g
908aad3
"
,
"Rev"
:
"
4039fd095084679fb0bf3feae9
1d02
506b5d67aa
"
"Rev"
:
"
908aad345c9fbf3ab9bbb9403
1d
c
02
d0d90df1b8
"
},
},
{
{
"ImportPath"
:
"github.com/ethereum/serpent-go"
,
"ImportPath"
:
"github.com/ethereum/serpent-go"
,
...
...
This diff is collapsed.
Click to expand it.
Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go
+
2
−
2
View file @
525cefa3
...
@@ -91,7 +91,7 @@ func makeParamsAndCache(chainManager pow.ChainManager, blockNum uint64) (*Params
...
@@ -91,7 +91,7 @@ func makeParamsAndCache(chainManager pow.ChainManager, blockNum uint64) (*Params
return
nil
,
err
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
()
start
:=
time
.
Now
()
C
.
ethash_mkcache
(
paramsAndCache
.
cache
,
paramsAndCache
.
params
,
(
*
C
.
ethash_blockhash_t
)(
unsafe
.
Pointer
(
&
seedHash
[
0
])))
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
...
@@ -387,7 +387,7 @@ func (pow *Ethash) verify(hash common.Hash, mixDigest common.Hash, difficulty *b
if
blockNum
/
epochLength
<
pow
.
paramsAndCache
.
Epoch
{
if
blockNum
/
epochLength
<
pow
.
paramsAndCache
.
Epoch
{
var
err
error
var
err
error
// If we can't make the params for some reason, this block is invalid
// 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
{
if
err
!=
nil
{
glog
.
V
(
logger
.
Info
)
.
Infoln
(
"big fucking eror"
,
err
)
glog
.
V
(
logger
.
Info
)
.
Infoln
(
"big fucking eror"
,
err
)
return
false
return
false
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment