Enable the Beta RPC API (v2) for all unit tests: (#4573)

* Enable api_version 2, which is currently in beta. It is expected to be
  marked stable by the next stable release.
* This does not change any defaults.
* The only existing tests changed were one that set the same flag, which
  was now redundant, and a couple that tested versioning explicitly.
This commit is contained in:
Ed Hennis
2023-06-21 11:51:37 -07:00
committed by GitHub
parent 264280edd7
commit 71d7d67fa3
3 changed files with 17 additions and 7 deletions

View File

@@ -49,6 +49,9 @@ setupConfigForUnitTests(Config& cfg)
cfg.FEES.account_reserve = XRP(200).value().xrp().drops();
cfg.FEES.owner_reserve = XRP(50).value().xrp().drops();
// The Beta API (currently v2) is always available to tests
cfg.BETA_RPC_API = true;
cfg.overwrite(ConfigSection::nodeDatabase(), "type", "memory");
cfg.overwrite(ConfigSection::nodeDatabase(), "path", "main");
cfg.deprecatedClearSection(ConfigSection::importNodeDatabase());