tromp / cuckoo

a memory-bound graph-theoretic proof-of-work system
Other
818 stars 173 forks source link

Suggestion: Refactor solvers to share main function #73

Open casey opened 5 years ago

casey commented 5 years ago

I would suggest refactoring the solvers to share a single main function. Benefits would be:

Also, it would be an opportunity to rewrite the main function in rust, because why not :)

Additionally, if the main function was separated from the solvers, individual solvers could be statically linked into other programs where the flexibility of dynamic linking isn't required.

tromp commented 5 years ago

Separating the main functions is on the todo list. There's also a huge amount of overlap between cuckoo and cuckatoo solvers. Eventually I will try to merge those back into one, with just a compile time option to choose.