Compare current seq vs validated (RIPD-669)

This commit is contained in:
Miguel Portilla
2015-03-27 13:51:10 -04:00
committed by Nik Bougalis
parent a90bb53cd2
commit 7a53f86fff

View File

@@ -149,7 +149,9 @@ error_code_i fillHandler (Context& context,
if (!getConfig ().RUN_STANDALONE
&& (handler->condition_ & NEEDS_CURRENT_LEDGER)
&& (getApp().getLedgerMaster().getValidatedLedgerAge() >
Tuning::maxValidatedLedgerAge))
Tuning::maxValidatedLedgerAge
|| context.netOps.getCurrentLedgerID() <=
context.netOps.getValidatedLedger ()->getLedgerSeq ()))
{
return rpcNO_CURRENT;
}