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
8ea04446
Commit
8ea04446
authored
Mar 08, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated ethash
parent
69920c73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
Godeps.json
Godeps/Godeps.json
+2
-2
ethash.go
Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go
+0
-2
No files found.
Godeps/Godeps.json
View file @
8ea04446
...
...
@@ -22,8 +22,8 @@
},
{
"ImportPath"
:
"github.com/ethereum/ethash"
,
"Comment"
:
"v17-6
3-gbca024b
"
,
"Rev"
:
"
bca024b0b30d83ec6798a5d4fa8c5fc6f937009a
"
"Comment"
:
"v17-6
4-ga323708
"
,
"Rev"
:
"
a323708b8c4d253b8567bf6c72727d1aec302225
"
},
{
"ImportPath"
:
"github.com/ethereum/serpent-go"
,
...
...
Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go
View file @
8ea04446
...
...
@@ -11,7 +11,6 @@ import "C"
import
(
"bytes"
"encoding/binary"
"fmt"
"io/ioutil"
"log"
"math/big"
...
...
@@ -293,7 +292,6 @@ func (pow *Ethash) Verify(block pow.Block) bool {
}
func
(
pow
*
Ethash
)
verify
(
hash
[]
byte
,
mixDigest
[]
byte
,
difficulty
*
big
.
Int
,
blockNum
uint64
,
nonce
uint64
)
bool
{
fmt
.
Printf
(
"%x
\n
%d
\n
%x
\n
%x
\n
"
,
hash
,
nonce
,
mixDigest
,
difficulty
.
Bytes
())
// First check: make sure header, mixDigest, nonce are correct without hitting the DAG
// This is to prevent DOS attacks
chash
:=
(
*
C
.
uint8_t
)(
unsafe
.
Pointer
(
&
hash
[
0
]))
...
...
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