Prevent crashes due to missing or corrupted database records
authorJeff Garzik <jgarzik@exmulti.com>
Tue, 22 May 2012 19:12:52 +0000 (15:12 -0400)
committerGavin Andresen <gavinandresen@gmail.com>
Tue, 19 Jun 2012 19:36:43 +0000 (15:36 -0400)
commit4bd6299efdeb8438d0a58aa7c1083a6faeeaa71b
tree0cfb1aea6762b93100b29d780ba58a889d3fb2ad
parentfcbeaff8d049e414284631989b950e56b909525c
Prevent crashes due to missing or corrupted database records

Any problems seen during deserialization will throw an uncaught
exception, crashing the entire bitcoin process.  Properly return an
error instead, so that we may at least log the error and gracefully
shutdown other portions of the app.
src/db.cpp
src/db.h