Block operation if a feature we don't support is enabled in the ledger.

This commit is contained in:
JoelKatz
2013-05-30 14:30:06 -07:00
parent a38e80eb6b
commit 69a904133f
8 changed files with 37 additions and 7 deletions

View File

@@ -115,6 +115,7 @@ protected:
OperatingMode mMode;
bool mNeedNetworkLedger;
bool mProposing, mValidating;
bool mFeatureBlocked;
boost::posix_time::ptime mConnectTime;
boost::asio::deadline_timer mNetTimer;
boost::shared_ptr<LedgerConsensus> mConsensus;
@@ -309,6 +310,8 @@ public:
void setProposing(bool p, bool v) { mProposing = p; mValidating = v; }
bool isProposing() { return mProposing; }
bool isValidating() { return mValidating; }
bool isFeatureBlocked() { return mFeatureBlocked; }
void setFeatureBlocked();
void consensusViewChange();
int getPreviousProposers() { return mLastCloseProposers; }
int getPreviousConvergeTime() { return mLastCloseConvergeTime; }