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:
@@ -122,9 +122,9 @@ public:
|
||||
|
||||
// test error on no account
|
||||
{
|
||||
auto resp = env.rpc("account_objects");
|
||||
BEAST_EXPECT( resp[jss::result][jss::error_message] ==
|
||||
"Missing field 'account'.");
|
||||
auto resp = env.rpc("json", "account_objects");
|
||||
BEAST_EXPECT( resp[jss::error_message] ==
|
||||
"Syntax error.");
|
||||
}
|
||||
// test error on malformed account string.
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user