mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Support API versioning
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <ripple/resource/Fees.h>
|
||||
#include <ripple/rpc/Context.h>
|
||||
#include <ripple/rpc/impl/Tuning.h>
|
||||
#include <ripple/rpc/impl/RPCHelpers.h>
|
||||
#include <ripple/rpc/RPCHandler.h>
|
||||
#include <test/jtx.h>
|
||||
#include <ripple/beast/unit_test.h>
|
||||
@@ -221,7 +222,8 @@ public:
|
||||
Resource::Charge loadType = Resource::feeReferenceRPC;
|
||||
Resource::Consumer c;
|
||||
RPC::Context context { env.journal, {}, app, loadType,
|
||||
app.getOPs(), app.getLedgerMaster(), c, Role::USER};
|
||||
app.getOPs(), app.getLedgerMaster(), c, Role::USER,
|
||||
RPC::APIVersionIfUnspecified};
|
||||
|
||||
Json::Value params = Json::objectValue;
|
||||
params[jss::command] = "ripple_path_find";
|
||||
@@ -320,7 +322,8 @@ public:
|
||||
Resource::Charge loadType = Resource::feeReferenceRPC;
|
||||
Resource::Consumer c;
|
||||
RPC::Context context {env.journal, {}, app, loadType,
|
||||
app.getOPs(), app.getLedgerMaster(), c, Role::USER};
|
||||
app.getOPs(), app.getLedgerMaster(), c, Role::USER,
|
||||
RPC::APIVersionIfUnspecified};
|
||||
Json::Value result;
|
||||
gate g;
|
||||
// Test RPC::Tuning::max_src_cur source currencies.
|
||||
|
||||
Reference in New Issue
Block a user