mit-dci / opencx

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

Refactor DB code #11

Closed Rjected closed 5 years ago

Rjected commented 5 years ago

Right now the code for database stuff is really ugly - it does sadly need refactoring. There are two things that can be done, one is have some persistent data storage solution that doesn't require management like mariadb, the other is cleaning up the current SQL implementation so it has more stuff in, say, a config file, rather than globals.

If different things are supposed to be pluggable as well, like auction vs normal exchange, we should have a nice way of making sure the database is set up for that. For example, if we wanted to use the same SQL database for either an auction orderbook, or peer storage, or both.