734 Commits

Author SHA1 Message Date
johnny9
e246a84c86 stratum: add mining.set_difficulty message parse 2023-07-01 14:19:51 -04:00
johnny9
24010c3fe8 bm1397: update midstate construction test with proper values
Midstate test has been updated with known working values from
a bm1397 job command. Additional adjustment was also made to the
bm_job construction method that changed the endianess of the
merkle root.
2023-07-01 14:19:51 -04:00
johnny9
5d4733ec34 stratum: fix coinbase construction tests
The api for construct_coinbase_tx changed and now takes the extranonce
2 as a parameter instead of the length.
2023-07-01 14:19:51 -04:00
Skot Croshere
60ef52d923 fix sdkconfig port 2023-07-01 14:19:51 -04:00
Skot Croshere
00199cc4e1 add common_components to c_properties 2023-07-01 14:19:51 -04:00
Skot
d6b7283354 Delete README.md 2023-07-01 14:19:51 -04:00
Skot Croshere
670c11ac72 updated readme and sdkconfig menus 2023-07-01 14:19:49 -04:00
Skot Croshere
3e3ba6d98e flip the byte order of the midstate 2023-07-01 14:18:41 -04:00
Skot Croshere
4cf368864e added a midstate sha256 function 2023-07-01 14:18:41 -04:00
johnny9
27b24d3c3e bm1397: integrate with stratum WIP 2023-07-01 14:18:41 -04:00
johnny9
1468a47359 chore: remove build folder from git repo 2023-07-01 14:18:41 -04:00
johnny9
0ceffee1fb LICENSE: add MIT license 2023-07-01 14:18:41 -04:00
johnny9
939aee42ee mining: add an additional merkle calc test 2023-07-01 14:18:41 -04:00
johnny9
bad72d638a mining: swap endianess of prevblockhash when computing midstate 2023-07-01 14:18:41 -04:00
johnny9
40cb7fac61 queue: clear queue when stratum says to abandon old work 2023-07-01 14:18:41 -04:00
johnny9
f80805f53a stratum_api: add method to check if previous work should be abandoned 2023-07-01 14:18:41 -04:00
Johnny
9b9a218f6e README: change order of build and unit test sections for clarity 2023-07-01 14:18:41 -04:00
Johnny
4841ef85a4 README: add set-target command to unit test instructions 2023-07-01 14:18:41 -04:00
Johnny
cfcb51cbf5 README: add info on setting the target hardware 2023-07-01 14:18:41 -04:00
Johnny
0c2c40bf31 README: add stratum unit test location 2023-07-01 14:18:41 -04:00
johnny9
2629845958 chore: remove unused example_test.py 2023-07-01 14:18:41 -04:00
johnny9
5cb972c493 README: add information about running the unit tests 2023-07-01 14:18:41 -04:00
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
Johnny
9197949d54 README: typo 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
64161f9db2 main: create define for STRATUM_USERNAME 2023-07-01 14:18:41 -04:00
johnny9
c1af662d4e README: add information on how to configure 2023-07-01 14:18:41 -04:00
johnny9
dc5d75e444 main: rename main module to miner 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
9f0ecd28cd main: add subscribe output parameters 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
johnny9
ec28d0a74d stratum: move recieve methods to module 2023-07-01 14:18:41 -04:00
johnny9
d34fcfabff Add definition for threaded work queue 2023-07-01 14:18:41 -04:00
johnny9
9c109e7553 Add basic stratum parsing using cJSON 2023-07-01 14:18:41 -04:00
johnny9
271cc33692 Implement recv_line for json-rpc 2023-07-01 14:18:41 -04:00
johnny9
d41a5d16ef Sub and auth to braiins pool 2023-07-01 14:18:41 -04:00
johnny9
7d8a77c61b Introduce the tcp_client example
This will be the basis for or WiFi connectivity and stratum client
2023-07-01 14:18:41 -04:00
Skot Croshere
bfadf5a67c changed main file to main.c updated readme 2023-07-01 14:17:47 -04:00