Skot Croshere
6560ea3a06
get rid of some old serial parsing functions
2023-07-01 14:20:48 -04:00
Skot Croshere
d23a55608c
added default difficulty to menuconfig and got rid of the I2C pin config
2023-07-01 14:20:48 -04:00
johnny9
dcc74213d4
admin: place bm_queue clear inside valid_jobs lock
2023-07-01 14:20:48 -04:00
johnny9
4764b368d1
bm1397: remove unused variable
2023-07-01 14:20:48 -04:00
johnny9
1ff595a736
miner: remove excess logging
2023-07-01 14:20:48 -04:00
johnny9
5a94acff09
stratum: don't attempt to recv authorize result
...
Previous implementation would miss the first mining.set_difficulty
message. We need to find a better way to manage result messages.
2023-07-01 14:20:48 -04:00
johnny9
6c3de26821
miner: maintain a buffer of the recent jobs sent to the asic
...
The asic will continue to process nonces for previous job commands
so we need to map the nonce packet job id with our buffer of jobs
that we have recently sent in order to test if the nonce is valid
and submit the share with the correct information.
2023-07-01 14:20:48 -04:00
johnny9
67babe7145
bm1397: fix problems with unit test on multiple runs
2023-07-01 14:20:48 -04:00
johnny9
3f6fbb7be2
test: add sdkconfig.defaults
...
Disable the watchdogs by default for the unit test project
2023-07-01 14:20:48 -04:00
johnny9
f123430a7d
bm1397: update job test case values
2023-07-01 14:20:48 -04:00
johnny9
adfb606164
miner: fix job packet id logic
2023-07-01 14:20:48 -04:00
johnny9
0f4c02ffe0
chore: update .gitignore to ignore all build folders
2023-07-01 14:20:48 -04:00
johnny9
f46ae9694b
bm1397: extra module to own component
...
Create an idf component for the bm1387 module and add a basic
test to verify that a bm1397 can produce a good nonce. bm1397
is also added to the list of tests under the unit test runner
component.
2023-07-01 14:20:48 -04:00
johnny9
c8e6c782d0
README: add information about supported hardware and platform software
2023-07-01 14:20:47 -04:00
johnny9
c7db9419c6
README: update information on configuration options
2023-07-01 14:19:51 -04:00
johnny9
5c65c42fa1
config: Remove unused IP settings configuration options
2023-07-01 14:19:51 -04:00
johnny9
2106186a93
chore: remove user-specifc vscode settings from git
2023-07-01 14:19:51 -04:00
johnny9
f8b2c5d480
chore: remove build/ folder from git
2023-07-01 14:19:51 -04:00
Johnny
535e1b0f80
README: remove information about old #define
2023-07-01 14:19:51 -04:00
johnny9
e617f15049
chore: whitespace cleanup in miner.c
2023-07-01 14:19:51 -04:00
johnny9
1d6f8b9927
chore: remove unused variable
2023-07-01 14:19:51 -04:00
johnny9
ee04e437be
stratum: don't try to check mining.suggest_difficulty result
...
Current implementation has a race condition with the first
mining.notify message and can cause the miner to take a long time
to start if it misses that message.
2023-07-01 14:19:51 -04:00
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