skot / ESP-Miner

A bitcoin ASIC miner for the ESP32
GNU General Public License v3.0
370 stars 140 forks source link

Parse stratum api reject reason #472

Open mutatrum opened 1 week ago

mutatrum commented 1 week ago

Initial implementation of parsing reject reasons as discussed in #264. It can handle two formats, the error array and the reject-reason string. If other flavours are found, it should be fairly trivial to extend the parsing.

This only handles the parsing aspect, feeding back to the front-end will be a separate issue.

I extended an existing and added a unit test, but I don't know how to run them.

mutatrum commented 1 week ago

image