From c46a89e7add43d937f29cdafef6ab293abf46443 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 3 Jul 2013 07:50:01 -0700 Subject: [PATCH] Don't sign/submit when network is not stable. --- src/cpp/ripple/RPCHandler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cpp/ripple/RPCHandler.cpp b/src/cpp/ripple/RPCHandler.cpp index 395fc71d3..b210b94a1 100644 --- a/src/cpp/ripple/RPCHandler.cpp +++ b/src/cpp/ripple/RPCHandler.cpp @@ -3682,9 +3682,7 @@ Json::Value RPCHandler::doCommand (const Json::Value& params, int iRole, LoadTyp return rpcError (rpcNO_NETWORK); } - // XXX Should verify we have a current ledger. - - if ((commandsA[i].iOptions & optCurrent) && false) + if ((commandsA[i].iOptions & optCurrent) && (theApp->getLedgerMaster().getValidatedLedgerAge() > 60)) { return rpcError (rpcNO_CURRENT); }