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
054947de
Commit
054947de
authored
May 06, 2015
by
Gustav Simonsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ethash linux & windows build fixes
parent
f4341c7b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
Godeps.json
Godeps/Godeps.json
+2
-2
ethash.go
Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go
+3
-3
ethashc.go
Godeps/_workspace/src/github.com/ethereum/ethash/ethashc.go
+1
-0
io.h
...rkspace/src/github.com/ethereum/ethash/src/libethash/io.h
+1
-1
util.h
...space/src/github.com/ethereum/ethash/src/libethash/util.h
+4
-4
No files found.
Godeps/Godeps.json
View file @
054947de
...
@@ -17,8 +17,8 @@
...
@@ -17,8 +17,8 @@
},
},
{
{
"ImportPath"
:
"github.com/ethereum/ethash"
,
"ImportPath"
:
"github.com/ethereum/ethash"
,
"Comment"
:
"v23.1-19
2-g4faa4cb
"
,
"Comment"
:
"v23.1-19
5-g4d50db9
"
,
"Rev"
:
"4
faa4cb42ae7f0ea6b4aa2c90cb9170fdcbb915a
"
"Rev"
:
"4
d50db90d8bb5f2fae357570366cb8c657a4ddfc
"
},
},
{
{
"ImportPath"
:
"github.com/howeyc/fsnotify"
,
"ImportPath"
:
"github.com/howeyc/fsnotify"
,
...
...
Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go
View file @
054947de
...
@@ -127,12 +127,12 @@ func (l *Light) Verify(block pow.Block) bool {
...
@@ -127,12 +127,12 @@ func (l *Light) Verify(block pow.Block) bool {
return
h256ToHash
(
ret
.
result
)
.
Big
()
.
Cmp
(
target
)
<=
0
return
h256ToHash
(
ret
.
result
)
.
Big
()
.
Cmp
(
target
)
<=
0
}
}
func
h256ToHash
(
in
C
.
struct_ethash_h256
)
common
.
Hash
{
func
h256ToHash
(
in
C
.
ethash_h256_t
)
common
.
Hash
{
return
*
(
*
common
.
Hash
)(
unsafe
.
Pointer
(
&
in
.
b
))
return
*
(
*
common
.
Hash
)(
unsafe
.
Pointer
(
&
in
.
b
))
}
}
func
hashToH256
(
in
common
.
Hash
)
C
.
struct_ethash_h256
{
func
hashToH256
(
in
common
.
Hash
)
C
.
ethash_h256_t
{
return
C
.
struct_ethash_h256
{
b
:
*
(
*
[
32
]
C
.
uint8_t
)(
unsafe
.
Pointer
(
&
in
[
0
]))}
return
C
.
ethash_h256_t
{
b
:
*
(
*
[
32
]
C
.
uint8_t
)(
unsafe
.
Pointer
(
&
in
[
0
]))}
}
}
func
(
l
*
Light
)
getCache
(
blockNum
uint64
)
*
cache
{
func
(
l
*
Light
)
getCache
(
blockNum
uint64
)
*
cache
{
...
...
Godeps/_workspace/src/github.com/ethereum/ethash/ethashc.go
View file @
054947de
...
@@ -2,6 +2,7 @@ package ethash
...
@@ -2,6 +2,7 @@ package ethash
/*
/*
#cgo CFLAGS: -std=gnu99 -Wall
#cgo CFLAGS: -std=gnu99 -Wall
#cgo windows CFLAGS: -mno-stack-arg-probe
#cgo LDFLAGS: -lm
#cgo LDFLAGS: -lm
#include "src/libethash/internal.c"
#include "src/libethash/internal.c"
...
...
Godeps/_workspace/src/github.com/ethereum/ethash/src/libethash/io.h
View file @
054947de
...
@@ -49,7 +49,7 @@ enum ethash_io_rc {
...
@@ -49,7 +49,7 @@ enum ethash_io_rc {
// small hack for windows. I don't feel I should use va_args and forward just
// small hack for windows. I don't feel I should use va_args and forward just
// to have this one function properly cross-platform abstracted
// to have this one function properly cross-platform abstracted
#if defined(_WIN32)
#if defined(_WIN32)
&& !defined(__GNUC__)
#define snprintf(...) sprintf_s(__VA_ARGS__)
#define snprintf(...) sprintf_s(__VA_ARGS__)
#endif
#endif
...
...
Godeps/_workspace/src/github.com/ethereum/ethash/src/libethash/util.h
View file @
054947de
...
@@ -26,11 +26,11 @@
...
@@ -26,11 +26,11 @@
extern
"C"
{
extern
"C"
{
#endif
#endif
#ifdef _MSC_VER
//
#ifdef _MSC_VER
void
debugf
(
char
const
*
str
,
...);
void
debugf
(
char
const
*
str
,
...);
#else
//
#else
#define debugf printf
//
#define debugf printf
#endif
//
#endif
static
inline
uint32_t
min_u32
(
uint32_t
a
,
uint32_t
b
)
static
inline
uint32_t
min_u32
(
uint32_t
a
,
uint32_t
b
)
{
{
...
...
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