mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
Updates, working to get the network code going.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user