From 0619fe62f625ef150faafd591ddc1763ab79ded3 Mon Sep 17 00:00:00 2001 From: Scott Schurr Date: Thu, 26 Oct 2023 15:01:27 -0700 Subject: [PATCH] [TEST] Add logging to understand amendment flapping bug --- src/ripple/app/consensus/RCLConsensus.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/ripple/app/consensus/RCLConsensus.cpp b/src/ripple/app/consensus/RCLConsensus.cpp index 4e973ef2bdf..9497236a85c 100644 --- a/src/ripple/app/consensus/RCLConsensus.cpp +++ b/src/ripple/app/consensus/RCLConsensus.cpp @@ -349,6 +349,13 @@ RCLConsensus::Adaptor::onClose( app_.getAmendmentTable().doVoting( prevLedger, validations, initialSet); } + else + { + JLOG(j_.debug()) + << "AmendmentTable::doVoting() not called. " + << "validations < quorum (" << validations.size() << " < " + << app_.validators().quorum() << ")"; + } } else if ( prevLedger->isVotingLedger() && @@ -364,6 +371,16 @@ RCLConsensus::Adaptor::onClose( initialSet); } } + else + { + if (prevLedger->isFlagLedger()) + { + JLOG(j_.debug()) + << "AmendmentTable::doVoting() not called. " + << "StandAlone: " << app_.config().standalone() + << "; proposing: " << proposing << "; wrongLCL: " << wrongLCL; + } + } // Now we need an immutable snapshot initialSet = initialSet->snapShot(false);