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
e3dfd558
Commit
e3dfd558
authored
Jun 12, 2017
by
Péter Szilágyi
Committed by
GitHub
Jun 12, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14598 from konradkonrad/fix_makedag
consensus/ethash, cmd/geth: Fix `makedag` epoch
parents
80f7c6c2
2fefe4ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ethash.go
consensus/ethash/ethash.go
+2
-2
No files found.
consensus/ethash/ethash.go
View file @
e3dfd558
...
@@ -308,14 +308,14 @@ func (d *dataset) release() {
...
@@ -308,14 +308,14 @@ func (d *dataset) release() {
// MakeCache generates a new ethash cache and optionally stores it to disk.
// MakeCache generates a new ethash cache and optionally stores it to disk.
func
MakeCache
(
block
uint64
,
dir
string
)
{
func
MakeCache
(
block
uint64
,
dir
string
)
{
c
:=
cache
{
epoch
:
block
/
epochLength
+
1
}
c
:=
cache
{
epoch
:
block
/
epochLength
}
c
.
generate
(
dir
,
math
.
MaxInt32
,
false
)
c
.
generate
(
dir
,
math
.
MaxInt32
,
false
)
c
.
release
()
c
.
release
()
}
}
// MakeDataset generates a new ethash dataset and optionally stores it to disk.
// MakeDataset generates a new ethash dataset and optionally stores it to disk.
func
MakeDataset
(
block
uint64
,
dir
string
)
{
func
MakeDataset
(
block
uint64
,
dir
string
)
{
d
:=
dataset
{
epoch
:
block
/
epochLength
+
1
}
d
:=
dataset
{
epoch
:
block
/
epochLength
}
d
.
generate
(
dir
,
math
.
MaxInt32
,
false
)
d
.
generate
(
dir
,
math
.
MaxInt32
,
false
)
d
.
release
()
d
.
release
()
}
}
...
...
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