mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
More feature RPC support.
This commit is contained in:
@@ -2263,11 +2263,17 @@ Json::Value RPCHandler::doFeature(Json::Value jvRequest, int& cost, ScopedLock&
|
||||
return jvReply;
|
||||
}
|
||||
|
||||
if (!jvRequest.isMember("vote"))
|
||||
uint256 uFeature = theApp->getFeatureTable().getFeature(jvRequest["feature"].asString());
|
||||
if (uFeature.isZero())
|
||||
{
|
||||
// WRITEME
|
||||
uFeature.SetHex(jvRequest["feature"].asString());
|
||||
if (uFeature.isZero())
|
||||
return rpcError(rpcBAD_FEATURE);
|
||||
}
|
||||
|
||||
if (!jvRequest.isMember("vote"))
|
||||
return theApp->getFeatureTable().getJson(uFeature);
|
||||
|
||||
// WRITEME
|
||||
return rpcError(rpcNOT_SUPPORTED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user