Disable compatible ledger safety if quorum is strict

This commit is contained in:
JoelKatz
2015-09-25 13:22:40 -07:00
committed by Vinnie Falco
parent f9a65e4966
commit e03effd63b
2 changed files with 9 additions and 1 deletions

View File

@@ -194,6 +194,13 @@ public:
bool isCompatible (Ledger::pointer ledger,
beast::Journal::Stream s, const char* reason) override
{
if (mStrictValCount)
{
// If we're only using validation count, then we can't
// reject a ledger even if it's ioncompatible
return true;
}
auto validLedger = getValidatedLedger();
if (validLedger &&