From 7a53f86fff1b9b2ae7286c79bddfec41049f88bf Mon Sep 17 00:00:00 2001 From: Miguel Portilla Date: Fri, 27 Mar 2015 13:51:10 -0400 Subject: [PATCH] Compare current seq vs validated (RIPD-669) --- src/ripple/rpc/impl/RPCHandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ripple/rpc/impl/RPCHandler.cpp b/src/ripple/rpc/impl/RPCHandler.cpp index 9416080fe..6577c8788 100644 --- a/src/ripple/rpc/impl/RPCHandler.cpp +++ b/src/ripple/rpc/impl/RPCHandler.cpp @@ -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; }