mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Disable compatible ledger safety if quorum is strict
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user