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)
committerLuke Dashjr <luke-jr+git@utopios.org>
Tue, 22 May 2012 22:47:51 +0000 (22:47 +0000)
commitb6862f7b74d0ea7442cf3b9eec7b9556ca47ce4b
treebcad1d45f93faab126a26e237d98bf65a0fe532b
parent8a39b0d613e6d79b7118eb929b5fe68220584f07
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