18 Commits

Author SHA1 Message Date
Skot
2e03a8f0e9
clear ASIC RX serial buffer on framing errors (#279)
* added rx serial buffer flush and serial debugging for BM1368

* added serial buffer flush to BM1366 also

* turned off ASIC serial debugging. let's see how this does on free heap
2024-08-09 16:06:12 -04:00
Ben
79430f6d3a reformat entire c project 2023-08-26 12:28:17 -04:00
Georges Palauqui
87d7e7c5d0
Fix build with IDF-5.1 2023-08-16 16:55:10 +02:00
johnny9
b9858777b0 stratum: move prettyHex and flip32 into utils 2023-07-01 14:19:51 -04:00
johnny9
d23a106a65 mining: add test to check nonce diff
Test unconvered issues in the construction of the header
when hashing as well as issues with converting the hash to
a double.
2023-07-01 14:19:51 -04:00
johnny9
b7a18871a7 Revert "cleaned up debug messages and hex printing a bit. still not checking nonces right"
This reverts commit ea0d14966264e9bc15630419e79f6283e30af40c.
2023-07-01 14:19:51 -04:00
johnny9
e27d9e32c8 Revert "added nonce checking fixes from @johnny9"
This reverts commit 2b06b3f4d7e290452fd082fdc1387246677ba860.
2023-07-01 14:19:51 -04:00
Skot Croshere
de237e1d34 added nonce checking fixes from @johnny9 2023-07-01 14:19:51 -04:00
Skot Croshere
61ed3c1c97 cleaned up debug messages and hex printing a bit. still not checking nonces right 2023-07-01 14:19:51 -04:00
Skot Croshere
ccb094a916 fix some warnings. trying to check nonce diff -- it's not working. 2023-07-01 14:19:51 -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
bad72d638a mining: swap endianess of prevblockhash when computing midstate 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
ca827ee4b5 mining: construct a job for bm13xx 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