From b71ee087ad616cfd864521f90d115923c8c517c0 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Thu, 26 May 2016 07:26:21 +0200 Subject: [PATCH] Merge #8015: CCoinsViewErrorCatcher raison-d-etre a4d5855 CCoinsViewErrorCatcher raison-d-etre (21E14) --- src/init.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/init.cpp b/src/init.cpp index b52134fff..41ebcd42c 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -169,6 +169,11 @@ bool ShutdownRequested() return fRequestShutdown || fRestartRequested; } +/** + * 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: