mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Make sure that handlers always return Json::objectValue.
This commit is contained in:
@@ -101,6 +101,7 @@ public:
|
||||
void filterNodes (std::vector<SHAMapNodeID>& nodeIDs, std::vector<uint256>& nodeHashes,
|
||||
std::set<SHAMapNodeID>& recentNodes, int max, bool aggressive);
|
||||
|
||||
/** Return a Json::objectValue. */
|
||||
Json::Value getJson (int);
|
||||
void runData ();
|
||||
|
||||
|
||||
@@ -144,6 +144,8 @@ public:
|
||||
virtual void reportValidations (const AmendmentSet&) = 0;
|
||||
|
||||
virtual Json::Value getJson (int) = 0;
|
||||
|
||||
/** Returns a Json::objectValue. */
|
||||
virtual Json::Value getJson (uint256 const& ) = 0;
|
||||
|
||||
virtual void
|
||||
|
||||
Reference in New Issue
Block a user