Don't treat idle time as wobble time.

This commit is contained in:
JoelKatz
2012-07-16 11:34:38 -07:00
parent 7e7356c155
commit f9e0a6ae72

View File

@@ -359,8 +359,6 @@ void LedgerConsensus::statusChange(newcoin::NodeEvent event, Ledger::pointer led
int LedgerConsensus::startup()
{
// create wobble ledger in case peers target transactions to it
theApp->getMasterLedger().beginWobble();
return 1;
}
@@ -377,6 +375,7 @@ int LedgerConsensus::statePreClose()
Log(lsINFO) << "CLC:: closing ledger";
mState = lcsESTABLISH;
mConsensusStartTime = boost::posix_time::second_clock::universal_time();
theApp->getMasterLedger().beginWobble();
theApp->getMasterLedger().closeTime();
mCloseTime = theApp->getOPs().getNetworkTimeNC();
theApp->getOPs().setLastCloseNetTime(mCloseTime);