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
0b8f66ed
Commit
0b8f66ed
authored
Mar 15, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated godep ethash
parent
22fa59f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Godeps.json
Godeps/Godeps.json
+2
-2
ethash.go
Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go
+4
-2
No files found.
Godeps/Godeps.json
View file @
0b8f66ed
...
@@ -22,8 +22,8 @@
...
@@ -22,8 +22,8 @@
},
},
{
{
"ImportPath"
:
"github.com/ethereum/ethash"
,
"ImportPath"
:
"github.com/ethereum/ethash"
,
"Comment"
:
"v23-1
1-g5376ec8
"
,
"Comment"
:
"v23-1
2-g149261a
"
,
"Rev"
:
"
5376ec8816d6bf787d4fc91a08b4527bc5e1f469
"
"Rev"
:
"
149261a5d7cafc3943cbcf1d370082ec70d81e8b
"
},
},
{
{
"ImportPath"
:
"github.com/ethereum/serpent-go"
,
"ImportPath"
:
"github.com/ethereum/serpent-go"
,
...
...
Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go
View file @
0b8f66ed
...
@@ -102,7 +102,9 @@ func makeParamsAndCache(chainManager pow.ChainManager, blockNum uint64) (*Params
...
@@ -102,7 +102,9 @@ func makeParamsAndCache(chainManager pow.ChainManager, blockNum uint64) (*Params
func
(
pow
*
Ethash
)
UpdateCache
(
force
bool
)
error
{
func
(
pow
*
Ethash
)
UpdateCache
(
force
bool
)
error
{
pow
.
cacheMutex
.
Lock
()
pow
.
cacheMutex
.
Lock
()
thisEpoch
:=
pow
.
chainManager
.
CurrentBlock
()
.
NumberU64
()
defer
pow
.
cacheMutex
.
Unlock
()
thisEpoch
:=
pow
.
chainManager
.
CurrentBlock
()
.
NumberU64
()
/
epochLength
if
force
||
pow
.
paramsAndCache
.
Epoch
!=
thisEpoch
{
if
force
||
pow
.
paramsAndCache
.
Epoch
!=
thisEpoch
{
var
err
error
var
err
error
pow
.
paramsAndCache
,
err
=
makeParamsAndCache
(
pow
.
chainManager
,
pow
.
chainManager
.
CurrentBlock
()
.
NumberU64
())
pow
.
paramsAndCache
,
err
=
makeParamsAndCache
(
pow
.
chainManager
,
pow
.
chainManager
.
CurrentBlock
()
.
NumberU64
())
...
@@ -110,7 +112,7 @@ func (pow *Ethash) UpdateCache(force bool) error {
...
@@ -110,7 +112,7 @@ func (pow *Ethash) UpdateCache(force bool) error {
panic
(
err
)
panic
(
err
)
}
}
}
}
pow
.
cacheMutex
.
Unlock
()
return
nil
return
nil
}
}
...
...
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