mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-27 07:05:54 +00:00
Add rpcNOT_SUPPORTED due to Clio disparity with Rippled (#360)
Mitigates #280
This commit is contained in:
@@ -46,6 +46,12 @@ doLedger(Context const& context)
|
|||||||
diff = params.at("diff").as_bool();
|
diff = params.at("diff").as_bool();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (params.contains(JS(full)))
|
||||||
|
return Status{RippledError::rpcNOT_SUPPORTED};
|
||||||
|
|
||||||
|
if (params.contains(JS(accounts)))
|
||||||
|
return Status{RippledError::rpcNOT_SUPPORTED};
|
||||||
|
|
||||||
auto v = ledgerInfoFromRequest(context);
|
auto v = ledgerInfoFromRequest(context);
|
||||||
if (auto status = std::get_if<Status>(&v))
|
if (auto status = std::get_if<Status>(&v))
|
||||||
return *status;
|
return *status;
|
||||||
|
|||||||
Reference in New Issue
Block a user