mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
.
This commit is contained in:
@@ -31,7 +31,7 @@ void TimingService::start(boost::asio::io_service& ioService)
|
||||
void TimingService::handleLedger()
|
||||
{
|
||||
cout << "publish ledger" << endl;
|
||||
theApp->getLedgerMaster().nextLedger();
|
||||
theApp->getLedgerMaster().startFinalization();
|
||||
mLedgerTimer->expires_at(mLedgerTimer->expires_at() + boost::posix_time::seconds(theConfig.LEDGER_SECONDS));
|
||||
mLedgerTimer->async_wait(boost::bind(&TimingService::handleLedger, this));
|
||||
|
||||
@@ -44,3 +44,8 @@ void TimingService::handleProp()
|
||||
theApp->getLedgerMaster().sendProposal();
|
||||
}
|
||||
|
||||
void TimingService::handleValid()
|
||||
{
|
||||
theApp->getLedgerMaster().endFinalization();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user