mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Two more load monitoring hooks.
This commit is contained in:
@@ -1021,9 +1021,12 @@ void LedgerConsensus::beginAccept(bool synchronous)
|
||||
|
||||
theApp->getOPs().newLCL(mPeerPositions.size(), mCurrentMSeconds, mNewLedgerHash);
|
||||
if (synchronous)
|
||||
accept(consensusSet);
|
||||
accept(consensusSet, LoadEvent::pointer());
|
||||
else
|
||||
theApp->getIOService().post(boost::bind(&LedgerConsensus::accept, shared_from_this(), consensusSet));
|
||||
{
|
||||
theApp->getIOService().post(boost::bind(&LedgerConsensus::accept, shared_from_this(), consensusSet,
|
||||
theApp->getJobQueue().getLoadEvent(jtLEDGER)));
|
||||
}
|
||||
}
|
||||
|
||||
void LedgerConsensus::playbackProposals()
|
||||
@@ -1170,7 +1173,7 @@ uint32 LedgerConsensus::roundCloseTime(uint32 closeTime)
|
||||
return closeTime - (closeTime % mCloseResolution);
|
||||
}
|
||||
|
||||
void LedgerConsensus::accept(SHAMap::ref set)
|
||||
void LedgerConsensus::accept(SHAMap::ref set, LoadEvent::pointer)
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock masterLock(theApp->getMasterLock());
|
||||
assert(set->getHash() == mOurPosition->getCurrentHash());
|
||||
|
||||
Reference in New Issue
Block a user