116 Commits

Author SHA1 Message Date
johnny9
225126708c main: add bm_job construction to mining task 2023-07-01 14:18:41 -04:00
johnny9
1118d01ba5 mining: add script for generating verification data for tests 2023-07-01 14:18:41 -04:00
johnny9
56958f88a2 mining: fix warning on arugment type for single_sha256 2023-07-01 14:18:41 -04:00
johnny9
bbd2ebe249 mining: fix endianness of the block header version 2023-07-01 14:18:41 -04:00
johnny9
901d2da341 stratum_api: parse the uint32_t values from the mining.notify message 2023-07-01 14:18:41 -04:00
johnny9
83ad62322a stratum_api: free job_id string 2023-07-01 14:18:41 -04:00
johnny9
ca827ee4b5 mining: construct a job for bm13xx 2023-07-01 14:18:41 -04:00
johnny9
ac9a121a3c mining: fix memory leak in merkle root calculation 2023-07-01 14:18:41 -04:00
johnny9
812e4213c1 stratum_api: cleanup notify parsing
Split parsing into two steps, one for the method and one for the
params themselves. Currently it is up to the miner task to grab
the parameters in the format it needs.
2023-07-01 14:18:41 -04:00
johnny9
abf914648f mining: fix coinbase tx concatenation 2023-07-01 14:18:41 -04:00
johnny9
f98cbf208b mining: fix merkle root calculation and add unit test 2023-07-01 14:18:41 -04:00
johnny9
1c21a43cc5 mining: add merkle root calculation 2023-07-01 14:18:41 -04:00
johnny9
23e588c94e utils: add double sha256 method 2023-07-01 14:18:41 -04:00
johnny9
10fc3d017e mining: add method to construct coinbase tx 2023-07-01 14:18:41 -04:00
johnny9
799d00dc2b stratum: parse extranonce and extranonce2_len from subscribe result 2023-07-01 14:18:41 -04:00
johnny9
3066edb7f1 Make stratum module testable and introduce first unit test 2023-07-01 14:18:41 -04:00