Jef
e84f308264
Fix unsoundness in ethash's unsafe code ( #6140 )
...
* Fix benchmarks
* Fix unsoundness in uses of unsafety
* Remove most uses of unsafe indexing and ptr::copy_nonoverlapping
This commit also includes a completely absurd optimisation that I
promise is an honest win. You can check the benchmarks, I barely
believe it myself.
* Add safety comment
* Add more safety comments
2017-07-28 14:26:22 +02:00
Robert Habermeier
079b24175c
Merge pull request #6080 from Vurich/ethash
...
Unroll loops in light_compute
2017-07-24 13:09:31 +02:00
Vurich
0fa9c93f6f
Style reungrumble
2017-07-22 14:49:02 +02:00
Vurich
7d35f994d2
Style ungrumble
2017-07-19 12:09:45 +02:00
Vurich
d51958dbf5
Speed up light_compute by ~9%
2017-07-18 15:38:10 +02:00
Vurich
410ded5d45
Remove dead code from benchmarks
2017-07-18 14:17:01 +02:00
Vurich
d994d7a10c
Add benchmarks
2017-07-18 14:14:42 +02:00
Tomasz Drwięga
a24b6ad983
Use standard paths for Ethash cache ( #5881 )
...
* Use cache path to store ethash files.
* Fixing tests, more flexible API.
* Use AsRef<Path> everywhere.
* Fixing ethcore tests.
* Fix RPC tests.
2017-07-10 12:57:40 +02:00
Gav Wood
8404edb656
Fix whitespace ( #4299 )
...
* Fix whitespace.
* Update copyright years/owner.
* Push release only for tags.
2017-01-25 18:51:41 +01:00
Gav Wood
17cc2be4b5
Rename ethcore -> parity in license.
2016-12-11 19:30:54 +01:00
Robert Habermeier
2806f1d4c9
Even more snapshot validity checks ( #2935 )
...
* clarify "cancelled periodic snapshot" message
* more rigorous checks for snapshot validity
* verify ancient blocks on import
* limit number of fed blocks
* make it possible to feed snapshot service canonical hashes
* fix failing test build
* swap ethash DAG only when more recent
2016-10-28 16:10:30 +02:00
Gav Wood
bb96849620
Revert #2172 , pretty much. ( #2387 )
...
* Revert #2172 , pretty much.
* Tidy up whitespace.
[ci:skip]
* Force CI.
2016-09-28 23:31:59 +02:00
Robert Habermeier
36d3d0d7d7
replace synchronization primitives with those from parking_lot ( #1593 )
...
* parking_lot in cargo.toml
* replace all lock invocations with parking_lot ones
* use parking_lot synchronization primitives
2016-07-13 19:59:59 +02:00
Tomasz Drwięga
3ce2374aeb
Disable long lines formatting ( #939 )
2016-04-12 15:06:02 -07:00
Peter
9655ce8dbf
Caching for computing seed hashes ( #541 )
...
Code review changes
2016-03-27 20:42:24 +01:00
Gav Wood
ffc5c2ea7b
eth_getwork implemented.
2016-02-29 19:30:13 +01:00
Peter
ce81a24bfd
Tests for issue #161
...
Implementations of get_cache_size and get_data_size in Rust (issue #161 )
Removed sizes module, containing replaced data tables
Fixed whitespace issues after code review
2016-02-21 02:11:09 +00:00
arkpar
cc5384fff5
Get rid of lru_cache dependency
2016-02-18 22:35:14 +01:00
debris
c90d64662a
added license in every *.rs file
2016-02-05 13:40:41 +01:00
arkpar
ead16110bb
Ethash disk cache
2016-01-30 23:02:55 +01:00
arkpar
e514d3d80f
Multithreaded event loop
2016-01-21 16:48:37 +01:00
arkpar
77d2303b55
Use sha3 crate in ethash
2016-01-18 16:05:45 +01:00
arkpar
e39e7491b8
Use ethash for verification
2016-01-17 12:00:34 +01:00