Updates, working to get the network code going.

This commit is contained in:
JoelKatz
2011-11-30 21:29:38 -08:00
parent 284445a7fa
commit f3ed8b7ec9
9 changed files with 295 additions and 172 deletions

View File

@@ -32,22 +32,24 @@ void TimingService::start(boost::asio::io_service& ioService)
void TimingService::handleLedger()
{
cout << "publish ledger" << endl;
#if 0
theApp->getLedgerMaster().startFinalization();
mLedgerTimer->expires_at(mLedgerTimer->expires_at() + boost::posix_time::seconds(theConfig.LEDGER_SECONDS));
mLedgerTimer->async_wait(boost::bind(&TimingService::handleLedger, this));
mPropTimer->expires_at(mLedgerTimer->expires_at() + boost::posix_time::seconds(theConfig.LEDGER_PROPOSAL_DELAY_SECONDS));
mPropTimer->async_wait(boost::bind(&TimingService::handleProp, this));
#endif
}
void TimingService::handleProp()
{
theApp->getLedgerMaster().sendProposal();
// theApp->getLedgerMaster().sendProposal();
}
void TimingService::handleValid()
{
theApp->getLedgerMaster().endFinalization();
// theApp->getLedgerMaster().endFinalization();
}
int TimingService::getCurrentLedgerIndex()