johnny9
f6f7f39886
chore: remove excess logging
2023-07-01 14:19:51 -04:00
johnny9
474f98d070
admin: only abandon work if there is work to abandon
2023-07-01 14:19:51 -04:00
johnny9
96217bc9a7
main: increase admin task priority
2023-07-01 14:19:51 -04:00
johnny9
13367a7208
queue: increase the queue size
2023-07-01 14:19:51 -04:00
johnny9
987415b40d
queue: fix logic for abandoning queue
...
In addition, don't allow the admin queue to block if its
queue is full. Instead, force a new item in by calling
dequeue.
2023-07-01 14:19:51 -04:00
johnny9
e0b1dded87
miner: use stratum difficulty for nonce checking
2023-07-01 14:19:51 -04:00
johnny9
6b8db512ae
queue: remove termination_flag param from dequeue
2023-07-01 14:19:51 -04:00
johnny9
50f0c11dcb
bm1397: set default ticket to 256 diff
2023-07-01 14:19:51 -04:00
johnny9
6b5e5b98f7
stratum: fix extranonce 2 generation when length > 4
2023-07-01 14:19:51 -04:00
johnny9
a3b0608520
miner: fix job command memcpy
2023-07-01 14:19:51 -04:00
johnny9
3d6d27b101
stratum: add an additional test to validate bm_job construction
2023-07-01 14:19:51 -04:00
johnny9
d583332f3b
stratum: add additional test for test_nonce_value
2023-07-01 14:19:51 -04: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
6bac906333
mining: fix extranonce_2_generate function definition
2023-07-01 14:19:51 -04:00
johnny9
278d948f10
mining: fix bm_job construction test
2023-07-01 14:19:51 -04:00
johnny9
da4fad9dab
Revert "proper midstates are back!"
...
This reverts commit bf4715b58ffbf5bcd2d2000fe40376fb7ccec9d1.
2023-07-01 14:19:51 -04:00
johnny9
20ed65279b
Revert "reverted ticket_mask. tried testing nonces nerdminer style"
...
This reverts commit eee399324d8e6caa1a7e51da3336dc84069c75c7.
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
fda3a36204
shorten the header debug and some others
2023-07-01 14:19:51 -04:00
Skot Croshere
3bdfd6d32d
setup for running unit tests. press cmd-sft-p "test"
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
3f79ff615e
reverted ticket_mask. tried testing nonces nerdminer style
2023-07-01 14:19:51 -04:00
Skot Croshere
f00ef85016
proper midstates are back!
2023-07-01 14:19:51 -04:00
Skot Croshere
1f2f520024
disabled extranonce rolling. doesn't seem like I'm getting nonces anymore?
2023-07-01 14:19:51 -04:00
johnny9
1ab923dae0
stratum: remove json buffer logging
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
9927e2995b
added suggest_difficulty
2023-07-01 14:19:51 -04:00
johnny9
f2509aa519
bm1397: comment out send_serial logging
2023-07-01 14:19:51 -04:00
johnny9
6eafb362a0
main: start SysTask before anything else
2023-07-01 14:19:51 -04:00
johnny9
b25e7b1e71
main: increase AsicTask stack to prevent overflow
2023-07-01 14:19:51 -04:00
johnny9
b93bd994b2
bm1397: set initial ticket to difficulty 512
...
Set the initial ticket high enough to get valid shares
2023-07-01 14:19:51 -04:00
johnny9
9cf8ee9b3b
miner: generate more bm_jobs using extranonce 2
2023-07-01 14:19:51 -04:00
johnny9
9c9c1ad540
stratum: add method to free bm_job struct
2023-07-01 14:19:51 -04:00
johnny9
8cf78d58cc
stratum: add methods for extranonce_2 generation
2023-07-01 14:19:51 -04:00
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