mit-dci / opencx

An open-source cryptocurrency exchange toolkit for implementing experimental exchange features
MIT License
206 stars 66 forks source link

gmp should only be used for solving puzzles #20

Open Rjected opened 5 years ago

Rjected commented 5 years ago

Describe the bug ocx does not build if gmp (libgmp-dev on Ubuntu) is not installed.

To Reproduce Steps to reproduce the behavior:

  1. Uninstall gmp if you have it installed
  2. go build ./cmd/ocx/...
  3. See error

Expected behavior cmd/ocx should not need gmp installed in order to build, only cmd/fred. Creating timelock puzzles is quick since there is a trapdoor, so gmp is not needed.

Desktop (please complete the following information):

Additional context This should be solved by separating the creating and solving dependencies for auction orders.