Fix a case where 'sign' won't work in standalone mode.

This commit is contained in:
JoelKatz
2013-10-23 17:24:16 -07:00
parent 7b6d81d812
commit c11abb42d1

View File

@@ -48,7 +48,7 @@ Json::Value RPCHandler::transactionSign (Json::Value params, bool bSubmit, bool
WriteLog (lsDEBUG, RPCHandler) << boost::str (boost::format ("transactionSign: %s") % params);
if (!bOffline && (getApp().getLedgerMaster().getValidatedLedgerAge() > 120))
if (!bOffline && !getConfig ().RUN_STANDALONE && (getApp().getLedgerMaster().getValidatedLedgerAge() > 120))
{
return rpcError (rpcNO_CURRENT);
}