The meat of this is in the miner.ts - I'm noticing in the browser that things just get "stuck" while the POW is working. Ultimately it probably makes sense to do this in a webworker, but for now this is a quick fix that did not seem to have noticeable impact on the time to find the right answer.
In the tests file I removed the dependency on @skaleproject/constants because for some reason it wasn't installing, and it only provides the zero address which isn't gonna change :).
The meat of this is in the miner.ts - I'm noticing in the browser that things just get "stuck" while the POW is working. Ultimately it probably makes sense to do this in a webworker, but for now this is a quick fix that did not seem to have noticeable impact on the time to find the right answer.
In the tests file I removed the dependency on
@skaleproject/constants
because for some reason it wasn't installing, and it only provides the zero address which isn't gonna change :).