14 Commits

Author SHA1 Message Date
Tino Breddin
b13515f0af Replace direct lager logging with hut
This ensure we can configure the logging backend in the umbrella project
where aeminer is used.
2019-10-22 10:33:07 +02:00
Juraj Hlista
b005644c4d Add verify_proof_from_hash/4 2019-05-24 10:17:44 +02:00
Juraj Hlista
083c2a0f87 Extend API with functions required in Stratum 2019-04-12 13:31:10 +07:00
Luca Favatella
d9d0652df6
Revert "Enable caller to select small initial nonce" 2019-04-01 14:33:55 +01:00
Luca Favatella
31482d418e Enable caller to select small initial nonce
... for reproducing quite closely behaviour before 68124a3
2019-03-29 14:37:46 +00:00
Juraj Hlista
87ee39ffb0 Export verify_proof/4 and add get_target/2
verify_proof/4 checks that a solution is a valid solution it doesn't check
it against any target.

get_target/2 returns the target of a solution in integer form
(not scientific).
2019-03-12 12:21:29 +07:00
Juraj Hlista
84f59998a2 Change types of exec and extra_args to binary
When config is created, it accepts binaries that are converted to list
and kept in config record. This causes issues in the code that uses this
project as a dependency. There is a different type for exec and extra_args
outside and inside the config record.
2019-03-12 11:00:57 +07:00
Juraj Hlista
73b70519f1 Use defines from .hrl in the code 2019-03-12 11:00:51 +07:00
Juraj Hlista
4726ab5ace Export instance/0 and instances/0 types 2019-03-03 14:04:02 +07:00
Juraj Hlista
68124a3355 Fix picking of random nonce 2019-02-26 18:01:26 +07:00
Zbigniew Pękala
aff6c54ded Use aeminer sink explicitely 2019-02-19 16:21:10 +01:00
Tino Breddin
41fee48ed2 Allow use of custom lager sink 2019-02-19 15:55:59 +01:00
Juraj Hlista
d6021504ad Add missing tests, refactor, improve type specs 2019-02-12 14:49:49 +01:00
Juraj Hlista
c2b9873d10 Copy aeminer_pow, aeminer_pow_cuckoo, aecuckoo_SUITE from ae node
aecuckoo_SUITE is moved from aecuckoo to aeminer

To make the suite pass:
- siphash24 module was taken from ae node
- enacl has become a dep of aeminer (due to blake2b_256 hash)
2019-02-12 14:19:00 +01:00