From a4d5855a2518c0727faf737de4febcee5f5c4901 Mon Sep 17 00:00:00 2001 From: 21E14 <21xe14@gmail.com> Date: Fri, 6 May 2016 00:10:49 -0400 Subject: [PATCH] CCoinsViewErrorCatcher raison-d-etre --- src/init.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/init.cpp b/src/init.cpp index b06f448a0..d74e6272e 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -136,6 +136,11 @@ bool ShutdownRequested() return fRequestShutdown; } +/** + * This is a minimally invasive approach to shutdown on LevelDB read errors from the + * chainstate, while keeping user interface out of the common library, which is shared + * between bitcoind, and bitcoin-qt and non-server tools. +*/ class CCoinsViewErrorCatcher : public CCoinsViewBacked { public: