mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Enable batch rpc processing
* Can be exercised from the command line with json2 * Rewrite Env::do_rpc to call the same code as rpc from the command line. This puts rpc handling logic in one place.
This commit is contained in:
@@ -250,10 +250,8 @@ class Feature_test : public beast::unit_test::suite
|
||||
|
||||
// anything other than accept or reject is an error
|
||||
jrr = env.rpc("feature", "CryptoConditions", "maybe");
|
||||
if(! BEAST_EXPECT(jrr.isMember("client_error")))
|
||||
return;
|
||||
BEAST_EXPECT(jrr["client_error"][jss::error] == "invalidParams");
|
||||
BEAST_EXPECT(jrr["client_error"][jss::error_message] == "Invalid parameters.");
|
||||
BEAST_EXPECT(jrr[jss::error] == "invalidParams");
|
||||
BEAST_EXPECT(jrr[jss::error_message] == "Invalid parameters.");
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user