This commit is contained in:
jed
2011-10-20 16:34:22 -07:00
parent 650ee74391
commit 0416d64fdc
16 changed files with 176 additions and 101 deletions

View File

@@ -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();
}