Makes three critical blocks for cs_mapAddresses smaller, and moves writing to the database out of them. This should also improve the concurrency of the code.
Closes #737
Made three critical blocks for cs_mapAddresses smaller, and moved
writing to the database out of them. This should also improve the
concurrency of the code.
Thanks to gmaxwell for finding the bug and testing my patches, by the way.