mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "Application.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <ctime>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
using namespace std;
|
||||
@@ -49,3 +50,8 @@ void TimingService::handleValid()
|
||||
theApp->getLedgerMaster().endFinalization();
|
||||
}
|
||||
|
||||
int TimingService::getCurrentLedgerIndex()
|
||||
{
|
||||
return( (time(NULL)-theConfig.NETWORK_START_TIME)/theConfig.LEDGER_SECONDS );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user