mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Use lambdas everywhere in JobQueue.
Conflicts: src/ripple/app/ledger/impl/LedgerConsensusImp.cpp
This commit is contained in:
committed by
Nik Bougalis
parent
a6f866b4d8
commit
c1f50ca7b3
@@ -643,13 +643,13 @@ void LedgerConsensusImp::handleLCL (uint256 const& lclHash)
|
||||
// Tell the ledger acquire system that we need the consensus ledger
|
||||
mAcquiringLedger = mPrevLedgerHash;
|
||||
auto& previousHash = mPrevLedgerHash;
|
||||
auto acquire = [previousHash] (Job&) {
|
||||
getApp().getInboundLedgers().acquire(
|
||||
previousHash, 0, InboundLedger::fcCONSENSUS);
|
||||
};
|
||||
getApp().getJobQueue().addJob (
|
||||
jtADVANCE, "getConsensusLedger", acquire);
|
||||
;
|
||||
jtADVANCE, "getConsensusLedger",
|
||||
[previousHash] (Job&) {
|
||||
getApp().getInboundLedgers().acquire(
|
||||
previousHash, 0, InboundLedger::fcCONSENSUS);
|
||||
});
|
||||
|
||||
mHaveCorrectLCL = false;
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user