mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 22:15:52 +00:00
Cleanups
This commit is contained in:
@@ -405,8 +405,7 @@ void Ledger::setAccepted (
|
||||
std::uint32_t closeTime, int closeResolution, bool correctCloseTime,
|
||||
Config const& config)
|
||||
{
|
||||
// Used when we witnessed the consensus. Rounds the close time, updates the
|
||||
// hash, and sets the ledger accepted and immutable.
|
||||
// Used when we witnessed the consensus.
|
||||
assert (closed());
|
||||
|
||||
info_.closeTime = closeTime;
|
||||
|
||||
@@ -442,7 +442,7 @@ void LedgerConsensusImp::mapCompleteInternal (
|
||||
auto it = mAcquired.find (hash);
|
||||
|
||||
// If we have already acquired this transaction set
|
||||
if (mAcquired.find (hash) != mAcquired.end ())
|
||||
if (it != mAcquired.end ())
|
||||
{
|
||||
if (it->second)
|
||||
{
|
||||
@@ -595,14 +595,12 @@ void LedgerConsensusImp::checkLCL ()
|
||||
JLOG (j_.warning)
|
||||
<< ripple::getJson (*mPreviousLedger);
|
||||
|
||||
if (ShouldLog (lsDEBUG, LedgerConsensus))
|
||||
if (j_.debug)
|
||||
{
|
||||
for (auto& it : vals)
|
||||
{
|
||||
JLOG (j_.debug)
|
||||
j_.debug
|
||||
<< "V: " << it.first << ", " << it.second.first;
|
||||
}
|
||||
}
|
||||
|
||||
if (mHaveCorrectLCL)
|
||||
app_.getOPs ().consensusViewChange ();
|
||||
|
||||
Reference in New Issue
Block a user