Consolidate "Not Synced" error messages:

Work on a version 2 of the XRP Network API has begun. The new
API returns:

* `notSynced` in place of `noClosed`, `noCurrent`, and `noNetwork`;
* `invalidParams` in place of `lgrIdxInvalid`.

The new version 2 API cannot be selected yet, as it remains a work
in progress.

Fixes #3269
This commit is contained in:
Howard Hinnant
2020-05-27 17:44:20 -04:00
committed by Nik Bougalis
parent 0214d83aa5
commit 1067086f71
21 changed files with 169 additions and 47 deletions

View File

@@ -223,9 +223,11 @@ public:
app.getOPs(),
app.getLedgerMaster(),
c,
Role::USER},
Role::USER,
{},
{},
RPC::APIVersionIfUnspecified},
{},
RPC::APIVersionIfUnspecified,
{}};
Json::Value params = Json::objectValue;
@@ -329,9 +331,11 @@ public:
app.getOPs(),
app.getLedgerMaster(),
c,
Role::USER},
Role::USER,
{},
{},
RPC::APIVersionIfUnspecified},
{},
RPC::APIVersionIfUnspecified,
{}};
Json::Value result;
gate g;