Remove full from ledger RPC forwarding (#1360)

Fixes #777
This commit is contained in:
Alex Kremer
2024-04-15 18:53:14 +01:00
committed by GitHub
parent e931f27d3b
commit e66cc7759e
5 changed files with 48 additions and 131 deletions

View File

@@ -62,13 +62,16 @@ public:
* @brief A struct to hold the input data for the command
*
* Clio does not support:
* - accounts
* - full
* - owner_finds
* - queue
*
* And the following are deprecated altogether:
* - full
* - accounts
* - ledger
* - type
*
* Clio will throw an error when any of `accounts`/`full`/`owner_funds`/`queue` are set to `true`
* Clio will throw an error when `queue` is set to `true`
* or if `full` or `accounts` are used.
* @see https://github.com/XRPLF/clio/issues/603
*/
struct Input {
@@ -102,9 +105,9 @@ public:
spec([[maybe_unused]] uint32_t apiVersion)
{
static auto const rpcSpec = RpcSpec{
{JS(full), validation::Type<bool>{}, validation::NotSupported{true}},
{JS(full), validation::NotSupported{}},
{JS(full), check::Deprecated{}},
{JS(accounts), validation::Type<bool>{}, validation::NotSupported{true}},
{JS(accounts), validation::NotSupported{}},
{JS(accounts), check::Deprecated{}},
{JS(owner_funds), validation::Type<bool>{}},
{JS(queue), validation::Type<bool>{}, validation::NotSupported{true}},