mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove censorshipMaxWarnings
This commit is contained in:
@@ -512,14 +512,7 @@ RCLConsensus::Adaptor::doAccept(
|
||||
<< " has not been included as of ledger " << curr
|
||||
<< ".";
|
||||
|
||||
if (wait / censorshipWarnInternal == censorshipMaxWarnings)
|
||||
{
|
||||
JLOG(j.error()) << ss.str() << " Additional warnings suppressed.";
|
||||
}
|
||||
else
|
||||
{
|
||||
JLOG(j.warn()) << ss.str();
|
||||
}
|
||||
JLOG(j.warn()) << ss.str();
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
@@ -51,9 +51,6 @@ class RCLConsensus
|
||||
/** Warn for transactions that haven't been included every so many ledgers. */
|
||||
constexpr static unsigned int censorshipWarnInternal = 15;
|
||||
|
||||
/** Stop warning after several warnings. */
|
||||
constexpr static unsigned int censorshipMaxWarnings = 5;
|
||||
|
||||
// Implements the Adaptor template interface required by Consensus.
|
||||
class Adaptor
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user