marvinroger / nanocurrency-js

🔗 A toolkit for the Nano cryptocurrency, allowing you to derive keys, generate seeds, hashes, signatures, proofs of work and blocks.
https://marvinroger.github.io/nanocurrency-js
141 stars 31 forks source link

[Feature Request] Add limit to ComputeWorkParams #93

Open igorcmelo opened 3 years ago

igorcmelo commented 3 years ago

I think it would be useful to have something to limit the number of tries of computeWork function. For example: if after 1 million tries it doesn't find a valid work, it stops instead of keep trying.