mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-21 04:05:51 +00:00
@@ -116,6 +116,7 @@ public:
|
||||
"manifest",
|
||||
"channel_authorize",
|
||||
"channel_verify",
|
||||
"simulate",
|
||||
};
|
||||
|
||||
return kPROXIED_COMMANDS.contains(method);
|
||||
|
||||
@@ -105,6 +105,22 @@ generateTestValuesForParametersTest()
|
||||
.called = 1,
|
||||
.isAdmin = !isAdmin,
|
||||
.expected = shouldForward},
|
||||
{.testName = "ShouldForwardReturnsTrueSimulate",
|
||||
.apiVersion = 1u,
|
||||
.method = "simulate",
|
||||
.testJson = "{}",
|
||||
.mockedIsClioOnly = !isClioOnly,
|
||||
.called = 1,
|
||||
.isAdmin = isAdmin,
|
||||
.expected = shouldForward},
|
||||
{.testName = "ShouldForwardReturnsTrueRipplePathFind",
|
||||
.apiVersion = 2u,
|
||||
.method = "ripple_path_find",
|
||||
.testJson = R"({"force_forward": true})",
|
||||
.mockedIsClioOnly = !isClioOnly,
|
||||
.called = 1,
|
||||
.isAdmin = isAdmin,
|
||||
.expected = shouldForward},
|
||||
{.testName = "ShouldForwardReturnsTrueIfCurrentLedgerSpecified",
|
||||
.apiVersion = 2u,
|
||||
.method = "anymethod",
|
||||
|
||||
Reference in New Issue
Block a user