From e8326397766d00e81d6aea1a161159fa50a81922 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 25 Jun 2012 09:10:17 -0700 Subject: [PATCH] Return whether the application is running. --- src/Application.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Application.h b/src/Application.h index ff0024adc7..5dac2be6cc 100644 --- a/src/Application.h +++ b/src/Application.h @@ -85,6 +85,7 @@ public: ValidationCollection& getValidations() { return mValidations; } bool isNew(const uint256& s) { return mSuppressions.addSuppression(s); } bool isNew(const uint160& s) { return mSuppressions.addSuppression(s); } + bool running() { return mTxnDB != NULL; } DatabaseCon* getTxnDB() { return mTxnDB; } DatabaseCon* getLedgerDB() { return mLedgerDB; }