vocdoni-node
vocdoni-node copied to clipboard
introduce a new package censusdb
The database operations previously implemented in the API census handler, are now moved to a standalone package.
The reasons are:
- cleaner code since we do not mix API and database
- the censusdb can now be used by other components, such as the vochain/censusdownloader in order to import new census automatically when an election is created.
censusdb and api/census will deprecate censusManager
Signed-off-by: p4u [email protected]