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
01ff0b31
Commit
01ff0b31
authored
Mar 20, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed ethash
parent
d8fe8f60
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 @
01ff0b31
...
...
@@ -22,8 +22,8 @@
},
{
"ImportPath"
:
"github.com/ethereum/ethash"
,
"Comment"
:
"v23.1-2
5-gc0429f2
"
,
"Rev"
:
"
c0429f268b62e2238b684d4b5495f8ff24115424
"
"Comment"
:
"v23.1-2
6-g934bb4f
"
,
"Rev"
:
"
934bb4f5060ab69d96fb6eba4b9a57facc4e160b
"
},
{
"ImportPath"
:
"github.com/ethereum/serpent-go"
,
...
...
Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go
View file @
01ff0b31
...
...
@@ -85,7 +85,7 @@ func makeParamsAndCache(chainManager pow.ChainManager, blockNum uint64) (*Params
Epoch
:
blockNum
/
epochLength
,
}
C
.
ethash_params_init
(
paramsAndCache
.
params
,
C
.
uint32_t
(
uint32
(
blockNum
)))
paramsAndCache
.
cache
.
mem
=
C
.
malloc
(
paramsAndCache
.
params
.
cache_size
)
paramsAndCache
.
cache
.
mem
=
C
.
malloc
(
C
.
size_t
(
paramsAndCache
.
params
.
cache_size
)
)
seedHash
,
err
:=
GetSeedHash
(
blockNum
)
if
err
!=
nil
{
...
...
@@ -118,7 +118,7 @@ func (pow *Ethash) UpdateCache(force bool) error {
func
makeDAG
(
p
*
ParamsAndCache
)
*
DAG
{
d
:=
&
DAG
{
dag
:
C
.
malloc
(
p
.
params
.
full_size
),
dag
:
C
.
malloc
(
C
.
size_t
(
p
.
params
.
full_size
)
),
file
:
false
,
paramsAndCache
:
p
,
}
...
...
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