Don't sign a transaction for non-admin when under load.

This commit is contained in:
JoelKatz
2013-07-08 13:46:59 -07:00
parent 47598a4d8d
commit 6723b35805

View File

@@ -60,6 +60,9 @@ RPCHandler::RPCHandler (NetworkOPs* netOps, InfoSub::pointer infoSub) : mNetOps
Json::Value RPCHandler::transactionSign (Json::Value params, bool bSubmit, bool bFailHard, ScopedLock& mlh)
{
if (theApp()->getFeeTrack().isLoaded() && (mRole != ADMIN))
return rpcError(rpcTOO_BUSY);
Json::Value jvResult;
RippleAddress naSeed;
RippleAddress raSrcAddressID;