@@ -220,8 +220,7 @@ LedgerManagerImpl::getLCLState() const
220
220
return mLastClosedLedgerState ;
221
221
}
222
222
223
-
224
- LedgerManagerImpl::LedgerState &
223
+ LedgerManagerImpl::LedgerState&
225
224
LedgerManagerImpl::getLCLState ()
226
225
{
227
226
releaseAssert (threadIsMain ());
@@ -365,11 +364,9 @@ LedgerManagerImpl::loadLastKnownLedger(bool restoreBucketlist)
365
364
{
366
365
// In no-history mode, this method should only be called when
367
366
// the LCL is genesis.
368
- releaseAssertOrThrow (getLCLState ().ledgerHeader .hash ==
369
- lastLedgerHash);
370
- releaseAssertOrThrow (
371
- getLCLState ().ledgerHeader .header .ledgerSeq ==
372
- GENESIS_LEDGER_SEQ);
367
+ releaseAssertOrThrow (getLCLState ().ledgerHeader .hash == lastLedgerHash);
368
+ releaseAssertOrThrow (getLCLState ().ledgerHeader .header .ledgerSeq ==
369
+ GENESIS_LEDGER_SEQ);
373
370
CLOG_INFO (Ledger, " LCL is genesis: {}" ,
374
371
ledgerAbbrev (getLCLState ().ledgerHeader ));
375
372
latestLedgerHeader = getLCLState ().ledgerHeader .header ;
@@ -425,8 +422,7 @@ LedgerManagerImpl::loadLastKnownLedger(bool restoreBucketlist)
425
422
// configs right away
426
423
LedgerTxn ltx (mApp .getLedgerTxnRoot ());
427
424
updateSorobanNetworkConfigForApply (ltx);
428
- getLCLState ().sorobanConfig =
429
- mApplyState .mSorobanNetworkConfig ;
425
+ getLCLState ().sorobanConfig = mApplyState .mSorobanNetworkConfig ;
430
426
}
431
427
}
432
428
@@ -1334,10 +1330,9 @@ LedgerManagerImpl::getLastClosedSnaphot()
1334
1330
{
1335
1331
if (!getLCLState ().snapshot )
1336
1332
{
1337
- getLCLState ().snapshot =
1338
- mApp .getBucketManager ()
1339
- .getBucketSnapshotManager ()
1340
- .copySearchableLiveBucketListSnapshot ();
1333
+ getLCLState ().snapshot = mApp .getBucketManager ()
1334
+ .getBucketSnapshotManager ()
1335
+ .copySearchableLiveBucketListSnapshot ();
1341
1336
}
1342
1337
return getLCLState ().snapshot ;
1343
1338
}
@@ -1612,10 +1607,12 @@ LedgerManagerImpl::applyTransactions(
1612
1607
// Record counts
1613
1608
if (numTxs > 0 )
1614
1609
{
1615
- mLedgerApplyMetrics .mTransactionCount .Update (static_cast <int64_t >(numTxs));
1610
+ mLedgerApplyMetrics .mTransactionCount .Update (
1611
+ static_cast <int64_t >(numTxs));
1616
1612
TracyPlot (" ledger.transaction.count" , static_cast <int64_t >(numTxs));
1617
1613
1618
- mLedgerApplyMetrics .mOperationCount .Update (static_cast <int64_t >(numOps));
1614
+ mLedgerApplyMetrics .mOperationCount .Update (
1615
+ static_cast <int64_t >(numOps));
1619
1616
TracyPlot (" ledger.operation.count" , static_cast <int64_t >(numOps));
1620
1617
CLOG_INFO (Tx, " applying ledger {} ({})" ,
1621
1618
ltx.loadHeader ().current ().ledgerSeq , txSet.summary ());
@@ -1707,7 +1704,8 @@ LedgerManagerImpl::applyTransactions(
1707
1704
1708
1705
mLedgerApplyMetrics .mTransactionApplySucceeded .inc (txSucceeded);
1709
1706
mLedgerApplyMetrics .mTransactionApplyFailed .inc (txFailed);
1710
- mLedgerApplyMetrics .mSorobanTransactionApplySucceeded .inc (sorobanTxSucceeded);
1707
+ mLedgerApplyMetrics .mSorobanTransactionApplySucceeded .inc (
1708
+ sorobanTxSucceeded);
1711
1709
mLedgerApplyMetrics .mSorobanTransactionApplyFailed .inc (sorobanTxFailed);
1712
1710
logTxApplyMetrics (ltx, numTxs, numOps);
1713
1711
return txResultSet;
0 commit comments