aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-05-26 07:26:21 +0200
committerWladimir J. van der Laan <[email protected]>2016-05-26 07:32:50 +0200
commit6fc6325f77ee1ca53f9180140ddcaf7f2d72d9d3 (patch)
tree31f304630affcb8b5b731f8f2a788ed35639c622 /src/init.cpp
parentMerge #8034: [doc][trivial] Add basic git squash workflow [skip ci] (diff)
parentCCoinsViewErrorCatcher raison-d-etre (diff)
downloaddiscoin-6fc6325f77ee1ca53f9180140ddcaf7f2d72d9d3.tar.xz
discoin-6fc6325f77ee1ca53f9180140ddcaf7f2d72d9d3.zip
Merge #8015: CCoinsViewErrorCatcher raison-d-etre
a4d5855 CCoinsViewErrorCatcher raison-d-etre (21E14)
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index a6d14996b..617d2e984 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -134,6 +134,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: