diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-05-06 23:38:28 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-05-06 23:38:28 +0800 |
commit | 054947def77bc2352f90f79206146c93dd5422d0 (patch) | |
tree | 6fa28557d97fea99960a4b18e6ac74776e921cda /Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go | |
parent | f4341c7b7f5dc037542d48efd74dc4691a9814a0 (diff) | |
download | go-tangerine-054947def77bc2352f90f79206146c93dd5422d0.tar go-tangerine-054947def77bc2352f90f79206146c93dd5422d0.tar.gz go-tangerine-054947def77bc2352f90f79206146c93dd5422d0.tar.bz2 go-tangerine-054947def77bc2352f90f79206146c93dd5422d0.tar.lz go-tangerine-054947def77bc2352f90f79206146c93dd5422d0.tar.xz go-tangerine-054947def77bc2352f90f79206146c93dd5422d0.tar.zst go-tangerine-054947def77bc2352f90f79206146c93dd5422d0.zip |
Add ethash linux & windows build fixes
Diffstat (limited to 'Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go')
-rw-r--r-- | Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go b/Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go index 1ee980765..5b94711c4 100644 --- a/Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go +++ b/Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go @@ -127,12 +127,12 @@ func (l *Light) Verify(block pow.Block) bool { 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)) } -func hashToH256(in common.Hash) C.struct_ethash_h256 { - return C.struct_ethash_h256{b: *(*[32]C.uint8_t)(unsafe.Pointer(&in[0]))} +func hashToH256(in common.Hash) C.ethash_h256_t { + return C.ethash_h256_t{b: *(*[32]C.uint8_t)(unsafe.Pointer(&in[0]))} } func (l *Light) getCache(blockNum uint64) *cache { |