Lefteris Karapetsas
85bf80272f
Implementing the API functions and adding docstrings
10 years ago
Lefteris Karapetsas
afc1b382d7
Start of new C API implementation
- For more details look at:
https://github.com/ethereum/wiki/wiki/Ethash-C-API
- The functions of the API have all been implemented but are not yet
used or tested
10 years ago
Lefteris Karapetsas
3038852084
Renaming ethash_blockhash_t to ethash_h256_t
10 years ago
Lefteris Karapetsas
a738504e67
Fixing the travis build after a rebase
10 years ago
Lefteris Karapetsas
6d244fe69a
Use ethash_blockhash_t over the codebase
- Using a typedef struct instead of passing an array of hard coded
length of 32 bytes everywhere. It's much better C practise and also
gives us typechecking.
- Also corrected style in places I touched. I think a style PR should
follow after that.
10 years ago
Lefteris Karapetsas
8e2f9a3ea4
ethash_io tests and bug fixes
- Adding tests for the functionality offered by ethash_io
- ethash_io_write() now accepts ethash_params and seedhash instead of a
block number. This is for better modularity but first and foremost for
testability via unit tests
10 years ago
Gav Wood
47720ae279
Merge pull request #17 from LefterisJP/windows_fixes
various fixes in the code for the msvc build to work
10 years ago
Lefteris Karapetsas
90fe9cdc62
various fixes in the code for the msvc build to work
10 years ago
Gav Wood
b63d438d7b
Merge branch 'master' of github.com:ethereum/ethash
Documentation and API cleanups.
Conflicts:
src/libethash-cl/cl.hpp
src/libethash-cl/ethash_cl_miner.cpp
src/libethash/ethash.h
10 years ago
Lefteris Karapetsas
206bfe29cf
Fixing build for msvc
10 years ago
Lefteris Karapetsas
68f20ca817
Recovering lost commit after rebase
- adding back the tests for ethash_io
- adding back the travis configuration changes
- minor changes to make everything work
10 years ago
Lefteris Karapetsas
e4c695f37e
Style fixes
10 years ago
Lefteris Karapetsas
ab389898bd
ethash_io_prepare takes seedhash as an argument
- Also typedefing a blockhash (uint8_t[32]) as an ethash_blockhash_t
10 years ago
Lefteris Karapetsas
219e8e9825
Correct return value in memofile mismatch
10 years ago
Lefteris Karapetsas
383865e191
ethash_io_write and win32 specific code
- adding ethash_io_write() function
- only ethash_io_prepare() invoke system dependent functions so it's the
only one going in system specific source files.
10 years ago
Lefteris Karapetsas
43b7db8220
Adding io.h and io_posix.c
- DAG and memo file creation will now be taken care of in libethash
itself.
- To that end we crete a very minimal IO module for ethash.
- Depending on the target system io_posix or io_win32 will be used.
- Implemented ethash_io_prepare() for posix
10 years ago
chriseth
a3a47204a5
Sizes hold values with more than 32 bits and thus should not be size_t.
10 years ago
Tim Hughes
d7452447f6
Fixes for OpenCL 1.1
10 years ago
Matthew Wampler-Doty
46ade2d870
Updating data sizes, version bump
10 years ago
Matthew Wampler-Doty
95b19d20fe
Bump to latest revision
10 years ago
Matthew Wampler-Doty
367527f1ca
Refactoring names to match spec
10 years ago
Matthew Wampler-Doty
fa9e13139f
Introducing get_seedhash
10 years ago
Matthew Wampler-Doty
a238f4244f
Updating data size stuff
10 years ago
Matthew Wampler-Doty
657f789407
Reformating one liners
10 years ago
Matthew Wampler-Doty
32ca9b74d3
changing cpp-ethereum to ethash
10 years ago
Matthew Wampler-Doty
2bb0cebe69
Changing bounds checks
10 years ago
Matthew Wampler-Doty
7835d8f540
tidying up
10 years ago
Matthew Wampler-Doty
729ff686cc
bikeshedding
10 years ago
Matthew Wampler-Doty
bbd3c14c00
tidying up
10 years ago
Gav Wood
c33972f4a0
Merge branch 'master' of github.com:ethereum/ethash
10 years ago
Matthew Wampler-Doty
534fcfd464
Updating data sizes for Rev 20
10 years ago
Matthew Wampler-Doty
7e4d86dbb8
Refactoring everything into src/ for a little sanity
10 years ago